This commit is contained in:
parent
b6c031addc
commit
4646bee397
5 changed files with 205 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
ARG ARCH
|
||||
FROM amd64/debian:10.7-slim@sha256:b1af07039fe341833982bae85a2724ac8600ec5c74c37277c7a6ef7cddfb2cd0 AS base-amd64
|
||||
FROM arm32v7/debian:10.7-slim@sha256:d31590f680577ffde6bd08943e9590eaabdc04529ea60f4bb6f58cddbc33f628 AS base-arm
|
||||
FROM arm64v8/debian:10.7-slim@sha256:01b65c2928fed9427e59a679e287a75d98551ea2061cf03c61be0c7e1fc40fef AS base-arm64
|
||||
FROM base-${ARCH}
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
||||
curl="7.64.0-4+deb10u1" \
|
||||
tor="0.3.5.12-1" && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
useradd --system -M --shell /usr/sbin/nologin tor
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
VOLUME /web
|
||||
|
||||
USER tor
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
Reference in a new issue