alessandro trinca tornidor
commited on
Commit
·
e0c4716
1
Parent(s):
66ef4af
ci: docker, change COPY actions for wrappers and scripts folders
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
|
@@ -35,8 +35,13 @@ RUN git clone https://huggingface.co/spaces/aletrn/samgis-lisa-on-cuda ${LAMBDA_
|
|
| 35 |
ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/pyproject.toml && \
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
RUN add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy main universe restricted multiverse" && \
|
| 41 |
add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-security main universe restricted multiverse" && \
|
| 42 |
add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe restricted multiverse" && \
|
|
@@ -166,8 +171,8 @@ ENV IS_AWS_LAMBDA=""
|
|
| 166 |
# Set working directory to function root directory
|
| 167 |
WORKDIR ${LAMBDA_TASK_ROOT}
|
| 168 |
|
| 169 |
-
COPY --from=builder_global ${LAMBDA_TASK_ROOT}/
|
| 170 |
-
COPY --from=builder_global ${LAMBDA_TASK_ROOT}/
|
| 171 |
RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/entrypoint.sh
|
| 172 |
RUN chmod +x ${LAMBDA_TASK_ROOT}/scripts/docker_entrypoint.sh
|
| 173 |
RUN ls -l ${LAMBDA_TASK_ROOT}/scripts/entrypoint.sh ${LAMBDA_TASK_ROOT}/scripts/docker_entrypoint.sh
|
|
|
|
| 35 |
ls -l ${LAMBDA_TASK_ROOT}/samgis-lisa-on-cuda/pyproject.toml && \
|
| 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 |
# 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
|
| 178 |
RUN ls -l ${LAMBDA_TASK_ROOT}/scripts/entrypoint.sh ${LAMBDA_TASK_ROOT}/scripts/docker_entrypoint.sh
|