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
|
|
|
|
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-06-06 18:52:03 +02:00
|
|
|
COPY --from=builder /buildsrc/_build/scn_backend /app/server
|
2022-11-20 03:41:38 +01:00
|
|
|
|
|
|
|
RUN mkdir /data
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2023-06-06 18:52:03 +02:00
|
|
|
CMD ["/app/server"]
|