Test_DB / Dockerfile
Antoni09's picture
Upload 10 files
9c4e7c0 verified
raw
history blame contribute delete
334 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
COPY web_invoice_store.json /data/web_invoice_store.json
RUN chmod 666 /data/web_invoice_store.json
ENV DATA_DIR=/data
ENV PORT=7860
CMD ["python", "server.py"]