-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (35 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
49 lines (35 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM debian:bullseye
ARG BUILDPLATFORM BUILDOS BUILDARCH BUILDVARIANT TARGETPLATFORM TARGETOS TARGETARCH TARGETVARIANT
ARG S6_OVERLAY_VERSION=v3.1.2.1
ARG DEBIAN_FRONTEND='noninteractive'
RUN apt-get update && \
apt-get install -y \
apache2-utils \
apt-file \
apt-transport-https \
apt-utils \
bash \
ca-certificates \
coreutils \
curl \
iproute2 \
libc6-arm64-cross \
libstdc++6-arm64-cross \
lsb-release \
nano \
net-tools \
procps \
qemu-user \
wget \
xz-utils \
zip \
zstd \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl --fail https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz -SLo- | tar -C / -Jxpf - && \
curl --fail https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-`uname -m| sed 's/armv7l/armhf/g'`.tar.xz -SLo- | tar -C / -Jxpf -
COPY rootfs/ /
COPY --from=packetstream/psclient:latest /usr/local/bin/psrun /usr/local/bin/psdecode-arm64 /usr/local/bin/psdecode /usr/local/bin/exit-node /usr/local/bin/exit-node-arm64 /opt/packetstream/
RUN /installer/main.sh
RUN useradd -ms /bin/bash picash
ENTRYPOINT [ "/init" ]