-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
34 lines (28 loc) · 1.07 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
FROM ubuntu:18.04
LABEL maintainer "Ernesto Ruge <[email protected]>"
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
ENV LANG en_US.utf8
ENV LC_ALL en_US.utf8
ENV LANGUAGE en_US.utf8
RUN apt-get update && \
apt-get install -y locales apt-utils && \
locale-gen en_US en_US.UTF-8 && \
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale && \
apt-get dist-upgrade -y && \
apt-get install -y apt-utils python3 python3-pip python3-dev build-essential python3-venv libboost-python-dev \
libbz2-dev zlib1g-dev iputils-ping curl telnet ghostscript poppler-utils jpegoptim abiword openjdk-11-jre-headless \
psmisc && \
apt-get autoremove -y && \
apt-get clean
RUN groupadd -g 1002 webdev
RUN useradd -u 1002 -g webdev -m -d /home/webdev -s /bin/bash webdev
ENV HOME /home/webdev
RUN mkdir /app
WORKDIR /app
COPY . /app
RUN rm -rf /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
USER webdev
RUN pip install docutils
RUN pip install -r requirements.txt