initial commit
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM golang:1.23-alpine AS build
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
ARG TARGETARCH
|
||||
ARG TARGETOS
|
||||
|
||||
RUN apk add --no-cache make npm
|
||||
RUN make deps
|
||||
RUN make BUILD_ARCH="$TARGETARCH" BUILD_OS="$TARGETOS" build
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
WORKDIR /data
|
||||
COPY --from=build /app/build/beerpong-elo /app/beerpong-elo
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "/app/beerpong-elo" ]
|
||||
Reference in New Issue
Block a user