-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
18 lines (14 loc) 路 649 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nginx:1.20-alpine
# Metadata about the docker image
LABEL name="tor-nginx-proxy"
LABEL version="1.0.0-beta-1.0"
LABEL maintainer="Harshit Budhraja (https://github.com/harshit-budhraja)"
# Update packages and install tor
RUN apk --update --allow-untrusted --repository http://dl-4.alpinelinux.org/alpine/edge/community/ add \
tor && rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
# Copy nginx and tor configurations
COPY default.conf.template /etc/nginx/templates/default.conf.template
COPY torrc /etc/tor/torrc
# Add script to start tor
COPY start-tor.sh /docker-entrypoint.d/40-start-tor.sh
RUN chmod +x /docker-entrypoint.d/40-start-tor.sh