2023-05-28 16:03:14 +02:00
|
|
|
FROM golang as builder
|
|
|
|
|
|
|
|
WORKDIR /repo
|
|
|
|
COPY . /repo
|
|
|
|
|
|
|
|
RUN make build
|
|
|
|
|
2022-11-20 22:18:48 +01:00
|
|
|
FROM debian:bookworm
|
2022-11-20 03:41:38 +01:00
|
|
|
|
2023-05-28 17:54:53 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends ca-certificates && \
|
|
|
|
apt-get install -y --no-install-recommends tzdata && \
|
|
|
|
rm -rf /var/cache/apt/archives && \
|
|
|
|
rm -rf /var/lib/apt/lists
|
|
|
|
|
2023-05-28 16:03:14 +02:00
|
|
|
COPY --from=builder /repo/_build/scn_backend /app/scnserver
|
|
|
|
|
2022-11-20 03:41:38 +01:00
|
|
|
COPY DOCKER_GIT_INFO /app/DOCKER_GIT_INFO
|
|
|
|
|
|
|
|
RUN mkdir /data
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["/app/scnserver"]
|