Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -10,8 +10,6 @@ ARG INSTALL_CHANNEL=pytorch
|
|
| 10 |
ARG TARGETPLATFORM
|
| 11 |
|
| 12 |
RUN useradd -m -u 1000 user
|
| 13 |
-
USER user
|
| 14 |
-
WORKDIR /app
|
| 15 |
|
| 16 |
ENV PATH=/opt/conda/bin:$PATH
|
| 17 |
|
|
@@ -48,6 +46,9 @@ RUN case ${TARGETPLATFORM} in \
|
|
| 48 |
RUN pip install -r requirements.txt
|
| 49 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 50 |
|
|
|
|
|
|
|
|
|
|
| 51 |
# Expose the secret token at buildtime and use its value as git remote URL
|
| 52 |
RUN --mount=type=secret,id=BULK_ENERGY_TOKEN,mode=0444,required=true \
|
| 53 |
git init && \
|
|
|
|
| 10 |
ARG TARGETPLATFORM
|
| 11 |
|
| 12 |
RUN useradd -m -u 1000 user
|
|
|
|
|
|
|
| 13 |
|
| 14 |
ENV PATH=/opt/conda/bin:$PATH
|
| 15 |
|
|
|
|
| 46 |
RUN pip install -r requirements.txt
|
| 47 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 48 |
|
| 49 |
+
USER user
|
| 50 |
+
WORKDIR /app
|
| 51 |
+
|
| 52 |
# Expose the secret token at buildtime and use its value as git remote URL
|
| 53 |
RUN --mount=type=secret,id=BULK_ENERGY_TOKEN,mode=0444,required=true \
|
| 54 |
git init && \
|