Onionr/Dockerfile

32 lines
619 B
Docker
Raw Permalink Normal View History

2022-10-22 06:22:05 +00:00
FROM python:3.10
EXPOSE 8080
USER root
RUN mkdir /app
WORKDIR /app
ENV ONIONR_DOCKER=true
#Install needed packages
RUN apt-get update && apt-get install -y tor locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
2022-10-22 06:22:05 +00:00
ADD ./requirements-x86-all-plugins.txt /app/requirements.txt
2019-08-30 09:23:44 +00:00
RUN pip3 install --require-hashes -r requirements.txt
#Add Onionr source
COPY . /app/
VOLUME /app/data/
#Default to running as nonprivileged user
RUN chmod g=u -R /app
USER 1000
ENV HOME=/app
2022-10-22 06:22:05 +00:00
CMD ["bash", "./onionr.sh", "start"]