From 2dde4e88b123c6e92da4727cb34adecaa605d416 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Wed, 10 Dec 2025 10:04:45 +1100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c651e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.12-slim + +WORKDIR /app + +# Install dependencies +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy application +COPY . . + +# Create data directory +RUN mkdir -p /app/data + +# Set environment variables +ENV FLASK_APP=app.py +ENV DATABASE_URL=sqlite:///data/timekeeper.db + +# Expose port +EXPOSE 5000 + +# Run with gunicorn +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "app:app"]