forked from technotiger/CashReaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (39 loc) · 1.27 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
48
49
50
51
52
53
FROM python:3.11-slim-bullseye
ARG BUILDPLATFORM BUILDOS BUILDARCH BUILDVARIANT TARGETPLATFORM TARGETOS TARGETARCH TARGETVARIANT
ARG S6_OVERLAY_VERSION=v3.1.5.0
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 \
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/
RUN /installer/main.sh
RUN useradd -ms /bin/bash picash
WORKDIR /opt/hg-autoclaim
RUN pip install --no-cache-dir requests
WORKDIR /root
ENTRYPOINT [ "/init" ]