SimpleCloudNotifier/scnserver/Dockerfile

35 lines
605 B
Docker
Raw Permalink Normal View History

2023-05-28 16:03:14 +02:00
2023-06-06 18:52:03 +02:00
FROM golang:1-bullseye AS builder
RUN apt-get update && \
apt-get install -y ca-certificates openssl make git tar coreutils && \
rm -rf /var/lib/apt/lists/*
COPY . /buildsrc
RUN cd /buildsrc && make build
2023-05-28 16:03:14 +02:00
FROM debian:bookworm
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-06-06 18:52:03 +02:00
COPY --from=builder /buildsrc/_build/scn_backend /app/server
RUN mkdir /data
WORKDIR /app
EXPOSE 80
2023-06-06 18:52:03 +02:00
CMD ["/app/server"]