Skip to content

Commit

Permalink
docker: move fs from /home/pelias to /code/pelias/api
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 28, 2023
1 parent c70c7b5 commit 9a0e94f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a0e94f

Please sign in to comment.