Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -15,10 +15,10 @@ ARG TARGETPLATFORM
|
|
| 15 |
|
| 16 |
ENV PATH=/opt/conda/bin:$PATH
|
| 17 |
|
| 18 |
-
|
| 19 |
#RUN mkdir -p data
|
| 20 |
# I'm not sure how to allow later python files used here to write to .cache without making it world-writeable.
|
| 21 |
-
|
| 22 |
#RUN chmod 777 -R data
|
| 23 |
|
| 24 |
|
|
@@ -58,6 +58,7 @@ RUN pip install -r requirements.txt
|
|
| 58 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 59 |
|
| 60 |
COPY ./check_h100.py /check_h100.py
|
|
|
|
| 61 |
COPY ./entrypoint.sh /entrypoint.sh
|
| 62 |
COPY ./pause_space.py /pause_space.py
|
| 63 |
COPY ./parse_requests.py /parse_requests.py
|
|
@@ -71,6 +72,7 @@ COPY ./failed_attempts.txt /failed_attempts.txt
|
|
| 71 |
|
| 72 |
RUN chmod 777 *.py
|
| 73 |
RUN chmod 777 -R /runs
|
|
|
|
| 74 |
RUN chmod 777 /attempts.txt
|
| 75 |
RUN chmod 777 /failed_attempts.txt
|
| 76 |
RUN chmod +x /entrypoint.sh
|
|
|
|
| 15 |
|
| 16 |
ENV PATH=/opt/conda/bin:$PATH
|
| 17 |
|
| 18 |
+
RUN mkdir -p .cache
|
| 19 |
#RUN mkdir -p data
|
| 20 |
# I'm not sure how to allow later python files used here to write to .cache without making it world-writeable.
|
| 21 |
+
RUN chmod 777 -R .cache
|
| 22 |
#RUN chmod 777 -R data
|
| 23 |
|
| 24 |
|
|
|
|
| 58 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
| 59 |
|
| 60 |
COPY ./check_h100.py /check_h100.py
|
| 61 |
+
COPY ./.cache /.cache
|
| 62 |
COPY ./entrypoint.sh /entrypoint.sh
|
| 63 |
COPY ./pause_space.py /pause_space.py
|
| 64 |
COPY ./parse_requests.py /parse_requests.py
|
|
|
|
| 72 |
|
| 73 |
RUN chmod 777 *.py
|
| 74 |
RUN chmod 777 -R /runs
|
| 75 |
+
RUN chmod 777 -R /.cache
|
| 76 |
RUN chmod 777 /attempts.txt
|
| 77 |
RUN chmod 777 /failed_attempts.txt
|
| 78 |
RUN chmod +x /entrypoint.sh
|