Test_DB / Dockerfile
Antoni09's picture
Upload 16 files
8ad7117 verified
raw
history blame
378 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /data \
&& chmod -R 777 /data
# opcjonalnie, jeśli chcesz skopiować istniejący plik: COPY web_invoice_store.json /data/
# i po nim: RUN chmod 666 /data/web_invoice_store.json
ENV DATA_DIR=/data
ENV PORT=7860
CMD ["python", "server.py"]