petbackend / Dockerfile
alpingo23's picture
Upload 6 files
71cc10e verified
raw
history blame
344 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements_deployment.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY app_deployment.py app.py
# Expose port
EXPOSE 7860
# Set environment
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
# Run app
CMD ["python", "app.py"]