aletrn commited on
Commit
4115854
·
1 Parent(s): a198d62

[ci] try to better support huggingface CI

Browse files
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM localhost/samgis-base-fastapi:latest
2
 
3
  # Include global arg in this stage of the build
4
  ARG LAMBDA_TASK_ROOT="/var/task"
 
1
+ FROM registry.gitlab.com/aletrn/gis-prediction:latest
2
 
3
  # Include global arg in this stage of the build
4
  ARG LAMBDA_TASK_ROOT="/var/task"
dockerfiles/dockerfile-lambda-fastsam-api CHANGED
@@ -10,7 +10,6 @@ ENV VIRTUAL_ENV=${LAMBDA_TASK_ROOT}/.venv \
10
  WORKDIR ${LAMBDA_TASK_ROOT}
11
  COPY ./samgis ${LAMBDA_TASK_ROOT}/samgis
12
  COPY ./wrappers ${LAMBDA_TASK_ROOT}/wrappers
13
- COPY ./machine_learning_models ${LAMBDA_TASK_ROOT}/machine_learning_models
14
 
15
  RUN ls -l /usr/bin/which
16
  RUN /usr/bin/which python
 
10
  WORKDIR ${LAMBDA_TASK_ROOT}
11
  COPY ./samgis ${LAMBDA_TASK_ROOT}/samgis
12
  COPY ./wrappers ${LAMBDA_TASK_ROOT}/wrappers
 
13
 
14
  RUN ls -l /usr/bin/which
15
  RUN /usr/bin/which python
dockerfiles/dockerfile-samgis-base CHANGED
@@ -113,5 +113,6 @@ FROM runtime
113
  ARG FASTAPI_STATIC
114
  RUN mkdir ${FASTAPI_STATIC}
115
 
 
116
  COPY --from=node_prod_deps /appnode/node_modules* ${FASTAPI_STATIC}/node_modules
117
  COPY --from=node_build /appnode/dist* ${FASTAPI_STATIC}/dist
 
113
  ARG FASTAPI_STATIC
114
  RUN mkdir ${FASTAPI_STATIC}
115
 
116
+ COPY ./machine_learning_models ${LAMBDA_TASK_ROOT}/machine_learning_models
117
  COPY --from=node_prod_deps /appnode/node_modules* ${FASTAPI_STATIC}/node_modules
118
  COPY --from=node_build /appnode/dist* ${FASTAPI_STATIC}/dist
machine_learning_models/.gitignore DELETED
File without changes