-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
47 lines (38 loc) · 1.34 KB
/
Dockerfile
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
FROM python:slim-bullseye
ARG BUILDPLATFORM BUILDOS BUILDARCH BUILDVARIANT TARGETPLATFORM TARGETOS TARGETARCH TARGETVARIANT
ARG S6_OVERLAY_VERSION=v3.1.6.2
ARG DEBIAN_FRONTEND='noninteractive'
RUN apt-get update && \
apt-get install -y \
apache2-utils \
apt-file \
apt-transport-https \
apt-utils \
curl \
iproute2 \
libc6-arm64-cross \
libstdc++6-arm64-cross \
lsb-release \
nano \
net-tools \
procps \
qemu-user \
s6 \
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/ /usr/local/bin/
COPY --from=honeygain/honeygain:latest /usr/lib/ /usr/lib/
COPY --from=honeygain/honeygain:latest /app/ /opt/honeygain/
RUN /installer/main.sh
RUN useradd -ms /bin/bash cashreaper
WORKDIR /opt/hg-autoclaim
RUN pip install --upgrade pip --no-cache-dir requests
WORKDIR /root
ENTRYPOINT [ "/init" ]