xmr-btc-swap/libp2p-tor/tor.Dockerfile

14 lines
306 B
Docker
Raw Permalink Normal View History

2021-04-30 15:10:05 +10:00
# set alpine as the base image of the Dockerfile
FROM alpine:latest
# update the package repository and install Tor
RUN apk update && apk add tor
# Set `tor` as the default user during the container runtime
USER tor
EXPOSE 9050
EXPOSE 9051
# Set `tor` as the entrypoint for the image
ENTRYPOINT ["tor"]