Files
file-explorer/Dockerfile
sam a9774f41c9
All checks were successful
Docker Deploy / build-and-deploy (push) Successful in 4m3s
port
2026-02-06 10:37:03 +00:00

22 lines
584 B
Docker

# Use a lightweight Python image
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
COPY . .
# Expose the port Flask runs on (default is 5000)
EXPOSE 5005
# Run the application using Gunicorn for production
# Replace 'app:app' with 'your_filename:app_variable_name'
# CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
CMD ["python", "app.py"]