beds_pipeline_beds / Dockerfile
andreyunic23's picture
Update Dockerfile
0213aca
raw
history blame
505 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
# Dockerfile
# Allow statements and log messages to immediately appear in the logs
ENV PYTHONUNBUFFERED True
# Copy local code to the container image.
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY . $HOME/app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . $HOME/app
CMD gunicorn --bind :7860 --workers 1 --threads 8 --timeout 0 app:app