Command-fix/Dockerfile

20 lines
336 B
Docker
Raw Normal View History

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