Spaces:
Sleeping

ScanItem / Dockerfile
cormort's picture
Create Dockerfile
21e205e verified
Raw History Blame Contribute Delete
325 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
# 建立 templates 資料夾 (為了與 app.py 的結構對應)
RUN mkdir -p /code/templates
# 重要:確保權限
RUN chmod 777 /code
CMD ["python", "app.py"]