test / Dockerfile
SakibAhmed's picture
Update Dockerfile
ddbb9bb verified
raw
history blame contribute delete
352 Bytes
FROM python:3.9-slim
WORKDIR /app
# Create a non-root user
RUN useradd -m -u 1000 user
# Give full permissions to the app directory
RUN chmod -R 777 /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Run app.py when the container launches
EXPOSE 7860
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]