-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 874 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.26.2@sha256:1e598ea5752ae26c093b746fd73c5095af97d6f2d679c43e83e0eac484a33dc3 as pf
WORKDIR /build
ENV GO111MODULE=on
COPY main.go /build
RUN CGO_ENABLED=0 go build main.go && mv main pf
FROM bitnami/minideb:bullseye@sha256:8522e6505b27f62468460f7081f11e1eadba4229095115067e827ba4e52f6f82
WORKDIR /app
RUN apt-get update && \
apt-get install --no-install-recommends -y ca-certificates && \
echo "deb [trusted=yes] https://packages.twingate.com/apt/ /" | tee /etc/apt/sources.list.d/twingate.list && \
apt-get update -o Dir::Etc::sourcelist="sources.list.d/twingate.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" && \
apt-get install --no-install-recommends -y twingate && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /app/
COPY --from=pf /build/pf /app/
ENTRYPOINT [ "/app/entrypoint.sh" ]