Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +0 -16
Dockerfile
CHANGED
@@ -21,18 +21,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
21 |
git && \
|
22 |
rm -rf /var/lib/apt/lists/*
|
23 |
|
24 |
-
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
25 |
-
|
26 |
-
USER user
|
27 |
-
|
28 |
-
#RUN apt-get -y update \
|
29 |
-
# && apt-get install -y software-properties-common \
|
30 |
-
# && apt-get -y update \
|
31 |
-
# && add-apt-repository universe
|
32 |
-
#RUN apt-get -y update
|
33 |
-
#RUN apt-get -y install python3
|
34 |
-
#RUN apt-get -y install python3-pip
|
35 |
-
|
36 |
# Install conda
|
37 |
# translating Docker's TARGETPLATFORM into mamba arches
|
38 |
RUN case ${TARGETPLATFORM} in \
|
@@ -54,12 +42,8 @@ RUN case ${TARGETPLATFORM} in \
|
|
54 |
/opt/conda/bin/conda clean -ya
|
55 |
|
56 |
COPY --chown=user ./requirements.txt requirements.txt
|
57 |
-
|
58 |
-
USER user
|
59 |
-
|
60 |
RUN pip install -r requirements.txt
|
61 |
|
62 |
-
RUN chown -R user:user ./
|
63 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
64 |
|
65 |
COPY --chown=user ./check_h100.py /check_h100.py
|
|
|
21 |
git && \
|
22 |
rm -rf /var/lib/apt/lists/*
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
# Install conda
|
25 |
# translating Docker's TARGETPLATFORM into mamba arches
|
26 |
RUN case ${TARGETPLATFORM} in \
|
|
|
42 |
/opt/conda/bin/conda clean -ya
|
43 |
|
44 |
COPY --chown=user ./requirements.txt requirements.txt
|
|
|
|
|
|
|
45 |
RUN pip install -r requirements.txt
|
46 |
|
|
|
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 |
COPY --chown=user ./check_h100.py /check_h100.py
|