fix: update docker file
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
|
@@ -1,6 +1,13 @@
|
|
| 1 |
# Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
|
| 2 |
FROM nvcr.io/nvidia/physicsnemo/physicsnemo:25.08
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Install required python packages
|
| 5 |
RUN pip3 install gdown ipympl cdsapi
|
| 6 |
RUN pip3 install --upgrade nbconvert
|
|
@@ -9,6 +16,8 @@ WORKDIR /e2s
|
|
| 9 |
COPY --chown=user Earth2Studio_P1.ipynb /e2s/
|
| 10 |
COPY --chown=user start_server.sh /
|
| 11 |
|
|
|
|
|
|
|
| 12 |
# Install Earth-2 Studio
|
| 13 |
RUN pip install jupyterlab
|
| 14 |
RUN python -m pip install --upgrade pip setuptools wheel
|
|
|
|
| 1 |
# Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
|
| 2 |
FROM nvcr.io/nvidia/physicsnemo/physicsnemo:25.08
|
| 3 |
|
| 4 |
+
RUN useradd -m -u 1001 user
|
| 5 |
+
USER user
|
| 6 |
+
ENV HOME=/home/user
|
| 7 |
+
RUN mkdir $HOME/.cache $HOME/.config $HOME/.local && chmod -R 777 $HOME
|
| 8 |
+
ENV PATH=/home/user/.local/bin:$PATH
|
| 9 |
+
|
| 10 |
+
USER user
|
| 11 |
# Install required python packages
|
| 12 |
RUN pip3 install gdown ipympl cdsapi
|
| 13 |
RUN pip3 install --upgrade nbconvert
|
|
|
|
| 16 |
COPY --chown=user Earth2Studio_P1.ipynb /e2s/
|
| 17 |
COPY --chown=user start_server.sh /
|
| 18 |
|
| 19 |
+
RUN mkdir outputs && chown user:user outputs && chmod 777 outputs
|
| 20 |
+
|
| 21 |
# Install Earth-2 Studio
|
| 22 |
RUN pip install jupyterlab
|
| 23 |
RUN python -m pip install --upgrade pip setuptools wheel
|