Removed development Dockerfile, updated .gitignore to exclude docker-compose and added new example.docker-compose.yml

This commit is contained in:
Steve Dogiakos 2025-04-04 14:19:13 -06:00
parent f4466b8a67
commit 9f462c4c0a
3 changed files with 16 additions and 14 deletions

1
.gitignore vendored
View File

@ -185,3 +185,4 @@ cython_debug/
.vscode/ .vscode/
.env .env
docker-compose.yml

View File

@ -1,14 +0,0 @@
FROM python:3.9-slim
WORKDIR /app
# Copy and install Python dependencies.
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app code.
COPY . .
EXPOSE 5000
CMD ["python", "app.py"]

View File

@ -0,0 +1,15 @@
version: "3.8"
services:
guestbook:
image: snachodog/kiosk-guestbook:latest
container_name: guestbook
ports:
- "${PORT:-8000}:8000"
env_file:
- .env
volumes:
# Mount your local directory to persist data; adjust if you prefer a named volume
- /path/to/guestbook_data:/data
volumes:
guestbook_data: