-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 890 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 890 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
25
26
27
28
# syntax=docker/dockerfile:1.0-experimental
FROM alpine:3.18
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="[email protected]" \
org.label-schema.name="tor" \
org.label-schema.description="Image for running a single Tor instance" \
org.label-schema.usage="/LICENSE" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/mateumann/docker-tor.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version="0.7.0" \
org.label-schema.schema-version="1.0" \
com.microscaling.license="MIT"
RUN apk update && \
apk add --no-cache tor=0.4.7.13-r2 && \
rm -rf /var/cache/apk/* && \
sed "1s/^/SOCKSPort 0.0.0.0:9050\n/; s/^Log\ notice\ .*/Log notice stdout/" /etc/tor/torrc.sample > /etc/tor/torrc && \
rm /etc/tor/torrc.sample
USER tor
EXPOSE 9050
ENTRYPOINT ["/usr/bin/tor", "-f", "/etc/tor/torrc"]