-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
54 lines (39 loc) · 1.2 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
46
47
48
49
50
51
52
53
54
FROM ubuntu:focal
SHELL ["bash", "-c"]
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /etc/dpkg/sources.list.d/
RUN echo "deb http://ppa.launchpad.net/benjamin-sipsolutions/sdaps-stable/ubuntu xenial main" > /etc/dpkg/sources.list.d/sdaps
RUN apt update && apt install -y curl gnupg
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt update && \
apt upgrade -y && \
apt install -y \
git \
python3-virtualenv \
virtualenv \
python3-pkgconfig \
python3-dev \
python3-distutils-extra \
libtiff-dev \
libglib2.0-dev \
libgirepository1.0-dev \
libcairo2-dev \
python3-cairo-dev \
python3-pip \
screen \
wait-for-it \
yarn \
sdaps
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
RUN useradd -ms /bin/bash app
ADD . /project
USER app
ADD ./entrypoint.sh /entrypoint.sh
WORKDIR /project
RUN pip install -r requirements.txt
USER root
CMD usermod -u $USERID app && su app -c /entrypoint.sh
EXPOSE 8080