diff --git a/docker/Dockerfile-prod b/docker/Dockerfile-prod index cfd2d6a0..bee81818 100644 --- a/docker/Dockerfile-prod +++ b/docker/Dockerfile-prod @@ -7,8 +7,6 @@ RUN apk update && apk add --no-cache bash py-pip jq RUN npm install -g npm@5.6.0 && 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/ @@ -23,5 +21,8 @@ RUN addgroup -S efcuser && adduser -S efcuser -G efcuser RUN chown efcuser:efcuser -R /opt/efcsydney-roster USER efcuser +RUN pip install awscli --upgrade --user && \ + echo "export PATH=$PATH:~/.local/bin/" >> ~/.bashrc + EXPOSE 3000 3001 3002 ENTRYPOINT ["/bin/bash", "-ex", "/opt/efcsydney-roster/docker/Entrypoint.sh", "prod"]