aletrn commited on
Commit
03b4782
·
1 Parent(s): b08f38a

[ci] use env WRITE_TMP_ON_DISK instead of /tmp/vis_output

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -6,6 +6,7 @@ ARG PYTHONPATH="${WORKDIR_ROOT}:${PYTHONPATH}:/usr/local/lib/python3/dist-packag
6
  ENV VIRTUAL_ENV=${WORKDIR_ROOT}/.venv \
7
  PATH="${WORKDIR_ROOT}/.venv/bin:$PATH"
8
  ENV IS_AWS_LAMBDA=""
 
9
 
10
  # Set working directory to function root directory
11
  WORKDIR ${WORKDIR_ROOT}
@@ -14,8 +15,8 @@ COPY samgis ${WORKDIR_ROOT}/samgis
14
  COPY wrappers ${WORKDIR_ROOT}/wrappers
15
  COPY pyproject.toml poetry.lock README.md ${WORKDIR_ROOT}
16
  RUN . ${WORKDIR_ROOT}/.venv && which python && echo "# install samgis #" && pip install .
17
- RUN mkdir /tmp/vis_output
18
- RUN ls -l /tmp/vis_output
19
 
20
  RUN ls -l /usr/bin/which
21
  RUN /usr/bin/which python
@@ -42,6 +43,6 @@ RUN ls -l ${WORKDIR_ROOT}/wrappers/
42
  RUN ls -l ${WORKDIR_ROOT}/static/
43
  RUN ls -l ${WORKDIR_ROOT}/static/dist
44
  RUN ls -l ${WORKDIR_ROOT}/static/node_modules
45
- RUN ls -l /tmp/vis_output
46
 
47
  CMD ["uvicorn", "wrappers.fastapi_wrapper:app", "--host", "0.0.0.0", "--port", "7860"]
 
6
  ENV VIRTUAL_ENV=${WORKDIR_ROOT}/.venv \
7
  PATH="${WORKDIR_ROOT}/.venv/bin:$PATH"
8
  ENV IS_AWS_LAMBDA=""
9
+ ENV WRITE_TMP_ON_DISK="/tmp/vis_output"
10
 
11
  # Set working directory to function root directory
12
  WORKDIR ${WORKDIR_ROOT}
 
15
  COPY wrappers ${WORKDIR_ROOT}/wrappers
16
  COPY pyproject.toml poetry.lock README.md ${WORKDIR_ROOT}
17
  RUN . ${WORKDIR_ROOT}/.venv && which python && echo "# install samgis #" && pip install .
18
+ RUN mkdir {WRITE_TMP_ON_DISK}
19
+ RUN ls -l {WRITE_TMP_ON_DISK}
20
 
21
  RUN ls -l /usr/bin/which
22
  RUN /usr/bin/which python
 
43
  RUN ls -l ${WORKDIR_ROOT}/static/
44
  RUN ls -l ${WORKDIR_ROOT}/static/dist
45
  RUN ls -l ${WORKDIR_ROOT}/static/node_modules
46
+ RUN ls -l {WRITE_TMP_ON_DISK}
47
 
48
  CMD ["uvicorn", "wrappers.fastapi_wrapper:app", "--host", "0.0.0.0", "--port", "7860"]