2018-08-19 04:07:09 +00:00
|
|
|
FROM ubuntu:bionic
|
2018-08-05 06:35:49 +00:00
|
|
|
|
|
|
|
#Base settings
|
|
|
|
ENV HOME /root
|
|
|
|
|
|
|
|
#Install needed packages
|
2018-11-11 02:10:58 +00:00
|
|
|
RUN apt update && apt install -y python3 python3-dev python3-pip tor locales nano sqlite3
|
2018-08-17 21:50:16 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
2018-08-05 06:35:49 +00:00
|
|
|
|
2018-08-10 22:13:58 +00:00
|
|
|
WORKDIR /srv/
|
|
|
|
ADD ./requirements.txt /srv/requirements.txt
|
2019-08-30 09:23:44 +00:00
|
|
|
RUN pip3 install --require-hashes -r requirements.txt
|
2018-08-05 06:35:49 +00:00
|
|
|
|
2018-08-10 22:13:58 +00:00
|
|
|
WORKDIR /root/
|
|
|
|
#Add Onionr source
|
|
|
|
COPY . /root/
|
|
|
|
VOLUME /root/data/
|
2018-08-05 06:35:49 +00:00
|
|
|
|
|
|
|
#Set upstart command
|
|
|
|
CMD bash
|
|
|
|
|
|
|
|
#Expose ports
|
|
|
|
EXPOSE 8080
|