alessandro trinca tornidor
commited on
Commit
•
bfaaa1e
1
Parent(s):
fb648a1
[ci] revert to FASTAPI_STATIC as subfolder of LAMBDA_TASK_ROOT
Browse files- Dockerfile +1 -2
- scripts/entrypoint.sh +1 -1
Dockerfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
# Include global ARGs at the dockerfile top
|
2 |
ARG ARCH="x86_64"
|
3 |
ARG LAMBDA_TASK_ROOT="/var/task"
|
4 |
-
ARG
|
5 |
-
ARG FASTAPI_STATIC="${XDG_CACHE_HOME}/static"
|
6 |
ARG PYTHONPATH="${LAMBDA_TASK_ROOT}:${PYTHONPATH}:/usr/local/lib/python3/dist-packages"
|
7 |
ARG POETRY_NO_INTERACTION=1
|
8 |
ARG POETRY_VIRTUALENVS_IN_PROJECT=1
|
|
|
1 |
# Include global ARGs at the dockerfile top
|
2 |
ARG ARCH="x86_64"
|
3 |
ARG LAMBDA_TASK_ROOT="/var/task"
|
4 |
+
ARG FASTAPI_STATIC="${LAMBDA_TASK_ROOT}/static"
|
|
|
5 |
ARG PYTHONPATH="${LAMBDA_TASK_ROOT}:${PYTHONPATH}:/usr/local/lib/python3/dist-packages"
|
6 |
ARG POETRY_NO_INTERACTION=1
|
7 |
ARG POETRY_VIRTUALENVS_IN_PROJECT=1
|
scripts/entrypoint.sh
CHANGED
@@ -5,7 +5,7 @@ XDG_CACHE_HOME="/data"
|
|
5 |
PROJECT_ROOT_FOLDER=${XDG_CACHE_HOME}
|
6 |
MPLCONFIGDIR=${XDG_CACHE_HOME}/.cache/matplotlib
|
7 |
TRANSFORMERS_CACHE=${XDG_CACHE_HOME}/.cache/transformers
|
8 |
-
FASTAPI_STATIC=${
|
9 |
VIS_OUTPUT=${XDG_CACHE_HOME}/vis_output
|
10 |
|
11 |
echo "WORKDIR content: ${WORKDIR}, before creating the FASTAPI_STATIC symlink ..."
|
|
|
5 |
PROJECT_ROOT_FOLDER=${XDG_CACHE_HOME}
|
6 |
MPLCONFIGDIR=${XDG_CACHE_HOME}/.cache/matplotlib
|
7 |
TRANSFORMERS_CACHE=${XDG_CACHE_HOME}/.cache/transformers
|
8 |
+
FASTAPI_STATIC=${WORKDIR}/static
|
9 |
VIS_OUTPUT=${XDG_CACHE_HOME}/vis_output
|
10 |
|
11 |
echo "WORKDIR content: ${WORKDIR}, before creating the FASTAPI_STATIC symlink ..."
|