coolone / Dockerfile
triflix's picture
Update Dockerfile
85e7180 verified
raw
history blame contribute delete
318 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy everything to /app
COPY . /app
# Install required packages
RUN pip install --no-cache-dir -r requirements.txt
# Make sure /data exists
RUN mkdir -p /data
# Expose the port your Flask app runs on
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]