Spaces:
Sleeping
Sleeping
Commit
·
bf459ce
1
Parent(s):
eafe900
new dock file
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -2,15 +2,13 @@
|
|
| 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 |
-
|
| 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
|
|
|
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
FROM python:3.9
|
| 5 |
+
RUN --mount=type=secret,id=CLEARML_API_ACCESS_KEY,required=true \
|
| 6 |
+
echo "Using ClearML API key: $(cat /run/secrets/CLEARML_API_ACCESS_KEY)" && \
|
| 7 |
+
pip install clearml
|
| 8 |
RUN useradd -m -u 1000 user
|
| 9 |
USER user
|
| 10 |
ENV PATH="/home/user/.local/bin:$PATH"
|
| 11 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
COPY --chown=user ./requirements.txt requirements.txt
|