mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-03 22:48:20 -06:00
chore: remove dev Dockerfile and add example docker-compose
This commit is contained in:
@@ -185,3 +185,4 @@ cython_debug/
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
docker-compose.yml
|
||||||
|
|||||||
@@ -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"]
|
|
||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user