Skip to content

Commit

Permalink
#557 - Run as user 'efcuser'
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonDarumatic committed Jun 15, 2019
1 parent ec6d06e commit 22676c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile-prod
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
FROM mhart/alpine-node:8.12.0


ARG REACT_APP_ENV=qa
ENV REACT_APP_ENV=${REACT_APP_ENV}

RUN apk update && apk add --no-cache bash py-pip jq
RUN npm install -g [email protected] && npm install -g pm2@latest
RUN apk add mysql-client


RUN pip install awscli --upgrade --user && \
echo "export PATH=$PATH:~/.local/bin/" >> ~/.bashrc


COPY ./ /opt/efcsydney-roster/
RUN ls /opt/efcsydney-roster/
WORKDIR /opt/efcsydney-roster
Expand All @@ -22,6 +19,9 @@ WORKDIR /opt/efcsydney-roster/client
RUN yarn ; yarn build ; rm -rf ./node_modules

WORKDIR /opt/efcsydney-roster
RUN addgroup -S efcuser && adduser -S efcuser -G efcuser
RUN chown efcuser:efcuser -R /opt/efcsydney-roster

USER efcuser
EXPOSE 3000 3001 3002
ENTRYPOINT ["/bin/bash", "-ex", "/opt/efcsydney-roster/docker/Entrypoint.sh", "prod"]

0 comments on commit 22676c6

Please sign in to comment.