NoShowPrediction / Dockerfile
arithescientist's picture
Update Dockerfile
630ddd9 verified
raw
history blame contribute delete
395 Bytes
FROM python:3.7.10
WORKDIR /opt/
RUN apt-get update -y
RUN apt-get install libsm6 libxext6 -y
# Create non-root user
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy application code
COPY --chown=user . /app
# Expose Flask port
EXPOSE 7860
CMD ["sh", "-c", "python app.py"]