SimpleCloudNotifier/scnserver/Dockerfile

37 lines
722 B
Docker
Raw 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 && \
2023-10-17 15:53:39 +02:00
apt-get install -y python3 python3-pip && \
pip install virtualenv && \
2023-06-06 18:52:03 +02:00
rm -rf /var/lib/apt/lists/*
COPY . /buildsrc
2023-10-17 15:53:39 +02:00
RUN cd /buildsrc && cp "scn_send.sh" "../scn_send.sh" && make build
2023-06-06 18:52:03 +02:00
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"]