This commit is contained in:
26
src/Dockerfile
Normal file
26
src/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
# FROM debian:bookworm
|
||||
FROM debian:bookworm-slim as BUILDER
|
||||
ARG URL
|
||||
ARG DEBNAME
|
||||
RUN \
|
||||
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y wget && \
|
||||
wget "${URL}" -O /tmp/client.tar.gz && \
|
||||
tar xv -C /tmp -f /tmp/client.tar.gz && \
|
||||
dpkg -i "/tmp/${DEBNAME}"
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
COPY --from=BUILDER /usr/local/bin/barracudavpn /app/
|
||||
|
||||
RUN \
|
||||
DEBIAN_FRONTEND=noninteractive apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt install -y iproute2 gettext-base && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
HEALTHCHECK --interval=30s --start-period=30s --timeout=3s \
|
||||
CMD /app/healthcheck.sh
|
||||
|
||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||
Reference in New Issue
Block a user