Skip to content

Commit

Permalink
init dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
holysoles committed Feb 8, 2024
1 parent b20ed8b commit a2bc2f2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use the official Python 3.8 slim image as the base image
FROM python:3.8-slim

WORKDIR /app

# Copy the necessary files and directories into the container
COPY static/ ./static/
COPY templates/ ./templates/
COPY blog/ ./blog/
COPY app.py requirements.txt ./

# Upgrade pip and install Python dependencies
RUN pip3 install --upgrade pip && pip install --no-cache-dir -r requirements.txt

EXPOSE 5000
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:5000", "-w", "4"]

0 comments on commit a2bc2f2

Please sign in to comment.