Spaces:
Sleeping
Sleeping
FROM python:3.9 | |
WORKDIR /code | |
RUN pip install --upgrade pip | |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
COPY ./requirements.txt /code/requirements.txt | |
ENV PATH="/root/.cargo/bin:${PATH}" | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . . | |
EXPOSE 7860 | |
CMD ["flask", "run"] |