loop_maestro / Dockerfile
jorisvaneyghen's picture
use python 3.10
f81cdc9
raw
history blame contribute delete
438 Bytes
# Use Python base image
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
# Set working directory
WORKDIR /app
# Copy current files into container
COPY . /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Expose default port
EXPOSE 7860
# Run with Gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]