forked from IdentityPython/pyop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 978 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
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
RUN /bin/echo -e "deb http://se.archive.ubuntu.com/ubuntu xenial main restricted universe\ndeb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe\ndeb http://security.ubuntu.com/ubuntu xenial-security main restricted universe" > /etc/apt/sources.list
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install \
python3-pip \
python-virtualenv \
libpython3-dev \
python-setuptools \
build-essential \
libffi-dev \
libssl-dev \
iputils-ping \
&& apt-get clean
RUN rm -rf /var/lib/apt/lists/*
RUN adduser --system --no-create-home --shell /bin/false --group pyop
COPY . /opt/pyop/src/
COPY docker/setup.sh /opt/pyop/setup.sh
COPY docker/start.sh /start.sh
RUN /opt/pyop/setup.sh
# Add Dockerfile to the container as documentation
COPY Dockerfile /Dockerfile
WORKDIR /
EXPOSE 9090
CMD ["bash", "/start.sh"]