-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (24 loc) · 986 Bytes
/
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
FROM python:3.7-slim
ARG USER=www
ARG USER_ID=1000
ARG GROUP_ID=1000
ENV USER=$USER
ENV DEBIAN_FRONTEND=noninteractive
COPY ./bettersis /home/$USER/bettersis/bettersis/
COPY ./requirements.txt /home/$USER/bettersis/
RUN addgroup --gid $GROUP_ID $USER \
&& adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID $USER \
&& apt-get update \
&& apt-get install -y wget rsyslog \
&& sed -i '/imklog/s/^/#/' /etc/rsyslog.conf \
&& wget https://github.com/JackHack96/logic-synthesis/releases/download/1.3.6/sis_1.3.6-1_amd64.deb \
&& dpkg -i sis_1.3.6-1_amd64.deb \
&& rm sis_1.3.6-1_amd64.deb \
&& apt-get remove -y wget \
&& rm -rf /var/lib/apt/lists/* \
&& pip install -r "/home/$USER/bettersis/requirements.txt" \
&& mkdir /data \
&& chmod -R 0777 /data
WORKDIR /data
ENTRYPOINT service rsyslog start && su $USER --command "python /home/$USER/bettersis/bettersis/bettersis.py"
VOLUME /data