-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (28 loc) · 1016 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
32
33
34
35
36
37
38
39
40
41
FROM centos/systemd:latest
LABEL maintainer="justin.payne@fda.hhs.gov"
RUN yum -y update \
&& yum -y install python3 \
&& yum clean all
# RUN useradd -ms /bin/bash porerefiner
# USER porerefiner
WORKDIR src
ADD . .
ADD porerefiner/porerefiner.service /usr/lib/systemd/user/
ADD porerefiner/porerefiner.app.service /usr/lib/systemd/user/
# RUN ls /usr/lib/systemd/user/
RUN systemctl --user enable porerefiner.service
RUN systemctl --user enable porerefiner.app.service
RUN python3 setup.py install --user
FROM jrei/systemd-debian:latest
LABEL maintainer="justin.payne@fda.hhs.gov"
RUN apt-get -y update \
&& apt-get -y install python3 python3-setuptools python3-pip \
&& apt-get clean all
WORKDIR src
ADD . .
ADD porerefiner/porerefiner.service /usr/lib/systemd/user/
ADD porerefiner/porerefiner.app.service /usr/lib/systemd/user/
# RUN ls /usr/lib/systemd/user/
RUN systemctl --user enable porerefiner.service
RUN systemctl --user enable porerefiner.app.service
RUN python3 setup.py install --user