Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +19 -3
Dockerfile
CHANGED
@@ -1,8 +1,25 @@
|
|
1 |
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
ENV PATH=/opt/conda/bin:$PATH
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
8 |
build-essential \
|
@@ -34,10 +51,9 @@ RUN case ${TARGETPLATFORM} in \
|
|
34 |
esac && \
|
35 |
/opt/conda/bin/conda clean -ya
|
36 |
|
37 |
-
|
38 |
COPY ./requirements.txt requirements.txt
|
|
|
39 |
|
40 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
41 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
42 |
|
43 |
USER user
|
|
|
1 |
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
|
2 |
|
3 |
+
ARG PYTORCH_VERSION=2.4.0
|
4 |
+
ARG PYTHON_VERSION=3.9
|
5 |
+
ARG CUDA_VERSION=12.1
|
6 |
+
ARG MAMBA_VERSION=24.3.0-0
|
7 |
+
ARG CUDA_CHANNEL=nvidia
|
8 |
+
ARG INSTALL_CHANNEL=pytorch
|
9 |
+
# Automatically set by buildx
|
10 |
+
ARG TARGETPLATFORM
|
11 |
+
|
12 |
+
|
13 |
+
#ENV HOME=/home/user \
|
14 |
+
# PATH=/home/user/.local/bin:/opt/conda/bin:$PATH
|
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 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
25 |
build-essential \
|
|
|
51 |
esac && \
|
52 |
/opt/conda/bin/conda clean -ya
|
53 |
|
|
|
54 |
COPY ./requirements.txt requirements.txt
|
55 |
+
RUN pip install -r requirements.txt
|
56 |
|
|
|
57 |
RUN git clone -b energy_star_dev https://github.com/huggingface/optimum-benchmark.git /optimum-benchmark && cd optimum-benchmark && pip install -e .
|
58 |
|
59 |
USER user
|