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.

24 lines
495 B

# base image
7 years ago
FROM pelias/baseimage:nodejs9
RUN useradd -ms /bin/bash pelias
USER pelias
# maintainer information
LABEL maintainer="pelias.team@gmail.com"
# 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" ]