-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
54 lines (45 loc) · 959 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
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM python:3.9.2-slim-buster
RUN useradd app
EXPOSE 8000
ENV PYTHONUNBUFFERED=1 \
PORT=8000
WORKDIR /app
COPY --chown=app:app . .
RUN apt-get update --yes --quiet
RUN apt-get install --yes --quiet --no-install-recommends \
gettext \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libdrm2 \
libgbm1 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libx11-6 \
libxcb1 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxkbcommon0 \
libxrandr2 \
libxshmfence1 \
wget \
xdg-utils \
netcat \
xvfb \
&& rm -rf /var/lib/apt/lists/*
RUN dpkg -i ./bin/google-chrome.deb
RUN pip install "daphne==3.0.2"
RUN pip install -r requirements.txt
USER app
CMD set -xe; daphne -b 0.0.0.0 -p 8000 app.app.asgi:application