Spaces:
Configuration error
Configuration error
File size: 465 Bytes
fe9f26f 24aa55e e9926ee df53e6f c2b911e e9926ee c2b911e e9926ee 8312f72 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
#kullanıcı olarak users atandı
ENV PATH="/home/user/.local/bin:$PATH"
# ^ when run as user, pip installs executables there
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
CMD ["flask", "main:app", "--host=0.0.0.0", "--port=8000"]
|