From 9a0e94f70f10f2557d75ab187b939cc72df640ec Mon Sep 17 00:00:00 2001 From: missinglink Date: Tue, 28 Nov 2023 12:18:50 +0100 Subject: [PATCH] docker: move fs from /home/pelias to /code/pelias/api --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2a4ba130..9db96d4da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,16 @@ FROM pelias/baseimage USER pelias -# Where the app is built and run inside the docker fs -ENV WORK=/home/pelias -WORKDIR ${WORK} +# change working dir +ENV WORKDIR /code/pelias/api +RUN mkdir -p ${WORKDIR} +WORKDIR ${WORKDIR} # copy package.json first to prevent npm install being rerun when only code changes -COPY ./package.json ${WORK} +COPY ./package.json ${WORKDIR} RUN npm install -COPY . ${WORK} +COPY . ${WORKDIR} # only allow containers to succeed if tests pass RUN npm test