-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·45 lines (36 loc) · 1.02 KB
/
Dockerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM phusion/baseimage:jammy-1.0.4
MAINTAINER D-Jy <[email protected]>
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
RUN echo 'APT::Get::Clean=always;' >> /etc/apt/apt.conf.d/99AutomaticClean
RUN apt-get update -qqy \
&& DEBIAN_FRONTEND=noninteractive apt-get -qyy install \
--no-install-recommends \
python3-venv \
python3-dev \
python3-lxml \
python3-pip \
libssl-dev \
pkg-config \
poppler-utils \
libgl1-mesa-glx \
ffmpeg \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /opt/thief/
RUN chown -R www-data:www-data /opt/thief
# Setup openchat
WORKDIR /opt/thief
RUN python3 -m venv venv && \
. venv/bin/activate && \
pip3 install -U pip && \
pip3 install wheel && \
pip3 install --upgrade -r requirements.txt && \
pip3 cache purge && \
chown -R www-data:www-data /opt/thief
# Register services to runit
RUN mkdir /etc/service/thief
COPY server.sh /etc/service/thief/run
RUN chmod a+x /etc/service/thief/run
# Define mountable directories.
#VOLUME []
WORKDIR /opt/thief