Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Add suggestion thanks @MacTwister + @jfurrow
Browse files Browse the repository at this point in the history
  • Loading branch information
isma committed Sep 28, 2019
1 parent 25409cc commit 69db351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
ARG NODE_IMAGE=node:10.16-alpine
ARG NODE_IMAGE=node:12.11-alpine
ARG WORKDIR=/usr/src/app/
ARG FLOOD_BASE_URI=/

FROM ${NODE_IMAGE} as nodebuild
ARG WORKDIR

ARG FLOOD_BASE_URI=/
ENV FLOOD_BASE_URI $FLOOD_BASE_URI

WORKDIR $WORKDIR
Expand Down Expand Up @@ -47,11 +48,10 @@ RUN addgroup -S flood
RUN adduser -S flood -G flood
RUN mkdir /data
RUN chown flood:flood /data
RUN chown flood:flood ${WORKDIR}

USER flood

COPY --from=nodebuild $WORKDIR $WORKDIR
COPY --from=nodebuild --chown=flood:flood $WORKDIR $WORKDIR

# Hints for consumers of the container.
EXPOSE 3000
Expand Down

0 comments on commit 69db351

Please sign in to comment.