restoration-api / Dockerfile
AhsanAftab's picture
Create Dockerfile
1650680 verified
raw
history blame contribute delete
379 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade pip
# Install CPU-only PyTorch to save space
RUN pip install --no-cache-dir torch torchvision --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir -r /code/requirements.txt
COPY . .
RUN chmod -R 777 /code
CMD ["python", "app.py"]