alessandro trinca tornidor commited on
Commit
555921d
·
1 Parent(s): e0c4716

ci: docker, remove references to wrappers folder because it's no more necessary

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -36,12 +36,9 @@ 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
- ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/wrappers && \
40
- cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/wrappers ${LAMBDA_TASK_ROOT}/wrappers && \
41
  ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/scripts && \
42
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/scripts ${LAMBDA_TASK_ROOT}/scripts
43
- RUN ls -l /etc/apt/preferences ${LAMBDA_TASK_ROOT}/pyproject.toml ${LAMBDA_TASK_ROOT}/wrappers \
44
- ${LAMBDA_TASK_ROOT}/scripts
45
  RUN add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy main universe restricted multiverse" && \
46
  add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-security main universe restricted multiverse" && \
47
  add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe restricted multiverse" && \
@@ -171,7 +168,6 @@ ENV IS_AWS_LAMBDA=""
171
  # Set working directory to function root directory
172
  WORKDIR ${LAMBDA_TASK_ROOT}
173
 
174
- COPY --from=builder_global ${LAMBDA_TASK_ROOT}/wrappers ${LAMBDA_TASK_ROOT}/wrappers
175
  COPY --from=builder_global ${LAMBDA_TASK_ROOT}/scripts ${LAMBDA_TASK_ROOT}/scripts
176
  RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/entrypoint.sh
177
  RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/docker_entrypoint.sh
@@ -196,8 +192,6 @@ RUN python -c "import loguru"
196
  RUN python -c "import rasterio"
197
  RUN python -c "import uvicorn"
198
  RUN df -h
199
- RUN ls -l ${LAMBDA_TASK_ROOT}/samgis_lisa_on_cuda/
200
- RUN ls -l ${LAMBDA_TASK_ROOT}/wrappers/
201
  RUN echo "LAMBDA_TASK_ROOT /static/:"
202
  RUN ls -l ${LAMBDA_TASK_ROOT}/static/ || true
203
  RUN ls -l ${LAMBDA_TASK_ROOT}/static/dist || true
 
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
  ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/scripts && \
40
  cp ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/scripts ${LAMBDA_TASK_ROOT}/scripts
41
+ RUN ls -l /etc/apt/preferences ${LAMBDA_TASK_ROOT}/pyproject.toml ${LAMBDA_TASK_ROOT}/scripts
 
42
  RUN add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy main universe restricted multiverse" && \
43
  add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-security main universe restricted multiverse" && \
44
  add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe restricted multiverse" && \
 
168
  # Set working directory to function root directory
169
  WORKDIR ${LAMBDA_TASK_ROOT}
170
 
 
171
  COPY --from=builder_global ${LAMBDA_TASK_ROOT}/scripts ${LAMBDA_TASK_ROOT}/scripts
172
  RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/entrypoint.sh
173
  RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/docker_entrypoint.sh
 
192
  RUN python -c "import rasterio"
193
  RUN python -c "import uvicorn"
194
  RUN df -h
 
 
195
  RUN echo "LAMBDA_TASK_ROOT /static/:"
196
  RUN ls -l ${LAMBDA_TASK_ROOT}/static/ || true
197
  RUN ls -l ${LAMBDA_TASK_ROOT}/static/dist || true