docker stuff
This commit is contained in:
parent
926da5a6cd
commit
9c49356153
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]pr@docker1:/srv/wast
|
@ -1,2 +1,3 @@
|
||||
# guestbook
|
||||
A guestbook made in Python.
|
||||
A guestbook made in Python. Made for embedding into other webpages.
|
||||
![](https://fzorb.xyz/i/c69ud.png)
|
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "44324:5000"
|
||||
volumes:
|
||||
- ./guestbook.db:/app/guestbook.db
|
||||
environment:
|
||||
- FLASK_ENV=production
|
Loading…
Reference in New Issue
Block a user