You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
396 B

# base image
FROM pelias/baseimage:nodejs10
USER pelias
# Where the app is built and run inside the docker fs
ENV WORK=/home/pelias
WORKDIR ${WORK}
# copy package.json first to prevent npm install being rerun when only code changes
COPY ./package.json ${WORK}
RUN npm install
COPY . ${WORK}
# only allow containers to succeed if tests pass
RUN npm test
# start service
CMD [ "./bin/start" ]