-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-Dev
33 lines (24 loc) · 1.01 KB
/
Dockerfile-Dev
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
FROM quay.io/domino/python-slim:3.10.10-slim-bullseye-356295
ENV PATH=$PATH:/app/.local/bin:/app/bin
ENV PYTHONUNBUFFERED=true
ENV FLASK_ENV=production
ENV LOG_LEVEL=DEBUG
ENV PYTHONPATH=/app
ENV GUNICORN_CMD_ARGS="--timeout 1200 --worker-class gevent --workers 3 --config=/usr/local/bin/gunicorn-gevent.conf.py --chdir /app -b 0.0.0.0"
ENV DOMINO_API_HOST=https://prod-field.cs.domino.tech
RUN groupadd --gid 1000 domino && \
useradd --uid 1000 --gid 1000 domino -m -d /app
RUN apt-get update \
&& apt-get upgrade --yes \
&& apt-get install -y --no-install-suggests --no-install-recommends \
curl vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY --chown=domino:domino ./gunicorn-gevent.conf.py /usr/local/bin/gunicorn-gevent.conf.py
COPY --chown=domino:domino domaudit /app/domaudit
COPY --chown=domino:domino domaudit_ui /app/domaudit_ui
USER domino