-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec6d06e
commit 22676c6
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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"] |