altcha-server/Dockerfile

19 lines
412 B
Docker
Raw Permalink Normal View History

2024-09-11 09:54:55 +02:00
FROM reg.cadoles.com/proxy_cache/library/golang:1.23.1 AS build
RUN apt-get update && apt-get install make
COPY . /src
WORKDIR /src
RUN go mod download && make GORELEASER_ARGS="build --rm-dist --single-target --snapshot" goreleaser
FROM reg.cadoles.com/proxy_cache/library/busybox
COPY --from=build /src/dist/altcha_linux_amd64_v1 /app
RUN chown -R 1000:1000 /app
WORKDIR /app
2024-09-11 10:12:31 +02:00
CMD ["/app/altcha", "run"]