Skip to content

Instantly share code, notes, and snippets.

@initcron
Created June 10, 2025 10:05
Show Gist options
  • Save initcron/1eba83fd4662298c20a0ea80ab79cc81 to your computer and use it in GitHub Desktop.
Save initcron/1eba83fd4662298c20a0ea80ab79cc81 to your computer and use it in GitHub Desktop.
# Use python alpine base image
FROM python:3.11-alpine3.17
# Set working directory
WORKDIR /app
# Copy source code to container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 80
EXPOSE 80
# Start the app using gunicorn
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment