-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |