initial commit

This commit is contained in:
2025-02-02 15:11:35 +01:00
commit 3640116dd5
39 changed files with 10298 additions and 0 deletions

22
Dockerfile Normal file
View 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" ]