Initial commit
This commit is contained in:
commit
315e731234
27 changed files with 3403 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM python:3.11-slim-buster
|
||||
|
||||
# Install build dependencies (build-essential provides gcc and other tools)
|
||||
RUN apt-get update && apt-get install -y build-essential
|
||||
|
||||
WORKDIR /personalsite
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV FLASK_APP=app.py
|
||||
|
||||
EXPOSE 5002
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5002", "app:app"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue