-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.web
41 lines (29 loc) · 968 Bytes
/
Dockerfile.web
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 quay.io/jitesoft/debian:10-slim
LABEL org.opencontainers.image.source https://github.com/mood-mapping-muppets/repo
RUN apt-get update && \
apt-get install -y \
rsync git build-essential \
python3 python3-dev python3-pip && \
rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade \
pip==20.2.4 \
setuptools==50.3.2 \
poetry==1.1.4 \
poetry-core==1.0.0 \
uwsgi
RUN ln -sf /usr/bin/python3.7 /usr/bin/python
USER nobody
WORKDIR /opt/coviddash/dashboard
RUN mkdir -p /opt/coviddash/dashboard
COPY dashboard/pyproject.toml dashboard/poetry.lock ./
USER root
RUN poetry export \
--without-hashes > requirements.txt && \
python3 -m pip install -r requirements.txt && \
rm requirements.txt && \
rm -rf /root/.cache
USER nobody
COPY dashboard ./
COPY mmmbgknow/ ./mmmbgknow/
EXPOSE 8080
CMD ["uwsgi", "--http", "0.0.0.0:8080", "--module", "app:server", "--processes", "2", "--threads", "8"]