Files
Docker-Inventory/Dockerfile
T
2026-07-29 19:24:59 +03:00

16 lines
238 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /data
ENV DATABASE_PATH=/data/inventory.db
ENV FLASK_APP=app.py
EXPOSE 5000
CMD ["python", "app.py"]