shekkari21 commited on
Commit
eafe900
·
1 Parent(s): d91ff4a

changed docker file

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ ENV PATH="/home/user/.local/bin:$PATH"
9
+ ENV CLEARML_WEB_SERVER="https://app.clear.ml/"
10
+ ENV CLEARML_API_SERVER="https://api.clear.ml"
11
+ ENV CLEARML_FILES_SERVER="https://files.clear.ml"
12
+ ENV CLEARML_API_ACCESS_KEY="0BY6NYDNBD6VGLUL1YZBXKI9TIB7X6"
13
+ ENV CLEARML_API_SECRET_KEY="1xh4AUJhtaX9TZpSLfZYfu3G4CZTW07CC8ryvaGeVwN__LnmfRd-wR333i6xQD-FhuE"
14
+ WORKDIR /app
15
+
16
+ COPY --chown=user ./requirements.txt requirements.txt
17
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
+
19
+ COPY --chown=user . /app
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]