make dockerfile more dockerflowy

This commit is contained in:
Danny Coates 2017-06-23 13:19:35 -07:00
parent e4fafc7472
commit 5d42beba92
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -1,12 +1,12 @@
FROM node:8-alpine
RUN adduser -S app
RUN addgroup -S -g 10001 app && adduser -S -D -G app -u 10001 app
COPY . /app
RUN chown -R app /app
USER app
WORKDIR /app
RUN mkdir static
RUN npm install
RUN npm install && npm cache clean --force
ENV PORT=1443
EXPOSE $PORT