Spaces:
Runtime error
Runtime error
File size: 448 Bytes
cea324f b5924f0 7d4b8de cea324f c5d8a57 7d4b8de b5924f0 c5d8a57 cea324f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# syntax=docker/dockerfile:1
FROM tensorflow/tensorflow:latest
RUN useradd -ms /bin/bash admin
ENV TRANSFORMERS_CACHE=/code/.cache
WORKDIR /code
USER 0
RUN mkdir /code/.cache
RUN chown -R admin:admin /code/.cache
RUN chmod 755 /code/.cache
USER admin
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0","--port", "7860"]
|