Merge pull request #135 from mozilla/dockerflow
make dockerfile more dockerflowy
This commit is contained in:
commit
8bd9f41a21
@ -1,12 +1,12 @@
|
|||||||
FROM node:8-alpine
|
FROM node:8-alpine
|
||||||
|
|
||||||
RUN adduser -S app
|
RUN addgroup -S -g 10001 app && adduser -S -D -G app -u 10001 app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN chown -R app /app
|
RUN chown -R app /app
|
||||||
USER app
|
USER app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN mkdir static
|
RUN mkdir static
|
||||||
RUN npm install
|
RUN npm install && npm cache clean --force
|
||||||
|
|
||||||
ENV PORT=1443
|
ENV PORT=1443
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
|
Loading…
Reference in New Issue
Block a user