Command-fix/Dockerfile

18 lines
303 B
Docker
Raw Normal View History

2017-09-24 21:44:49 +02:00
FROM mhart/alpine-node:latest
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json package-lock.json ./
RUN npm install
2017-09-24 21:44:49 +02:00
# Bundle app source
COPY . .
2017-10-01 22:46:05 +02:00
RUN addgroup -S app -g 50000 && \
adduser -S -g app -u 50000 app
USER app
ENTRYPOINT [ "node", "server.js" ]