Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -27,11 +27,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
27 |
# RUN useradd -m -u 1000 user
|
28 |
# USER user
|
29 |
|
30 |
-
# RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
|
31 |
-
RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
|
32 |
-
|
33 |
-
# COPY --chown=user . /home/user
|
34 |
-
|
35 |
ARG USER_NAME=user
|
36 |
ARG GROUP_NAME=berf
|
37 |
ARG UID=1000
|
@@ -41,9 +36,14 @@ RUN groupadd -g ${GID} ${GROUP_NAME} \
|
|
41 |
&& useradd -ms /bin/sh -u ${UID} -g ${GID} ${USER_NAME}
|
42 |
USER user
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
ADD "https://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@api.github.com/repos/zqh0253/tmp_berf/commits?per_page=1" latest_commit
|
45 |
-
RUN git clone https://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@github.com/zqh0253/tmp_berf.git berf
|
46 |
-
COPY --chown=user . /home/user/berf
|
47 |
WORKDIR /home/user/berf
|
48 |
|
49 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
27 |
# RUN useradd -m -u 1000 user
|
28 |
# USER user
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
ARG USER_NAME=user
|
31 |
ARG GROUP_NAME=berf
|
32 |
ARG UID=1000
|
|
|
36 |
&& useradd -ms /bin/sh -u ${UID} -g ${GID} ${USER_NAME}
|
37 |
USER user
|
38 |
|
39 |
+
|
40 |
+
# RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
|
41 |
+
RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
|
42 |
+
|
43 |
+
# COPY --chown=user . /home/user
|
44 |
+
|
45 |
ADD "https://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@api.github.com/repos/zqh0253/tmp_berf/commits?per_page=1" latest_commit
|
46 |
+
RUN git clone https://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@github.com/zqh0253/tmp_berf.git /home/user/berf
|
|
|
47 |
WORKDIR /home/user/berf
|
48 |
|
49 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|