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.

26 lines
501 B

# base image
FROM pelias/baseimage
RUN useradd -ms /bin/bash pelias
USER pelias
# maintainer information
LABEL maintainer="pelias.team@gmail.com"
EXPOSE 3100
# 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 [ "npm", "start" ]