alessandro trinca tornidor commited on
Commit
422b339
·
1 Parent(s): d4e2b14

ci: docker, try installing nodejs from noble from sources using ubuntu.sources file

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -36,6 +36,7 @@ RUN git clone https://huggingface.co/spaces/aletrn/samgis-lisa-on-cuda ${LAMBDA_
36
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/pyproject.toml ${LAMBDA_TASK_ROOT}/pyproject.toml && \
37
  ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/poetry.lock && \
38
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/poetry.lock ${LAMBDA_TASK_ROOT}/poetry.lock
 
39
  RUN echo "ls samgis-lisa-on-cuda ..."
40
  RUN ls -l /etc/apt/preferences ${LAMBDA_TASK_ROOT}/pyproject.toml ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda
41
  RUN ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/static
@@ -111,6 +112,7 @@ RUN cat /etc/lsb-release
111
  # deb-src http://it.archive.ubuntu.com/ubuntu/ noble main universe restricted multiverse
112
  # add-apt-repository "deb http://archive.ubuntu.com/ubuntu noble main universe restricted multiverse"
113
  RUN echo "install software-properties-common ..."
 
114
  RUN apt update && apt install software-properties-common -y
115
  RUN echo "install nodejs from source ..."
116
  RUN add-apt-repository "deb-src http://archive.ubuntu.com/ubuntu noble main universe restricted multiverse"
 
36
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/pyproject.toml ${LAMBDA_TASK_ROOT}/pyproject.toml && \
37
  ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/poetry.lock && \
38
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/poetry.lock ${LAMBDA_TASK_ROOT}/poetry.lock
39
+ COPY ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/dockerfiles/ubuntu.sources /etc/apt/ubuntu.sources
40
  RUN echo "ls samgis-lisa-on-cuda ..."
41
  RUN ls -l /etc/apt/preferences ${LAMBDA_TASK_ROOT}/pyproject.toml ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda
42
  RUN ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/static
 
112
  # deb-src http://it.archive.ubuntu.com/ubuntu/ noble main universe restricted multiverse
113
  # add-apt-repository "deb http://archive.ubuntu.com/ubuntu noble main universe restricted multiverse"
114
  RUN echo "install software-properties-common ..."
115
+ COPY --from=builder_global /etc/apt/ubuntu.sources /etc/apt/ubuntu.sources
116
  RUN apt update && apt install software-properties-common -y
117
  RUN echo "install nodejs from source ..."
118
  RUN add-apt-repository "deb-src http://archive.ubuntu.com/ubuntu noble main universe restricted multiverse"