ChefGen / Dockerfile
AndriiPets's picture
initial
1fd84d0
raw
history blame
389 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN mkdir ./cache
ENV TRANSFORMERS_CACHE="./cache"
RUN pip install --upgrade pip
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
EXPOSE 7860
CMD ["flask", "run"]