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