Skip to content

Commit

Permalink
fix(docker): reverted some Dockerfile changes (#516)
Browse files Browse the repository at this point in the history
* fix(docker): reverted some Dockerfile changes

* chore(docker): remove wait.sh
  • Loading branch information
WikiRik committed Mar 13, 2021
1 parent bd9ae26 commit f69ba39
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docker/statutory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ RUN mkdir -p /usr/app/src \
&& mkdir -p /usr/app/media \
&& mkdir -p /usr/app/scripts

WORKDIR /usr/app/src

COPY package.json /usr/app/src
COPY ./docker/statutory/bootstrap.sh /usr/app/scripts/bootstrap.sh
COPY . /usr/app/src

RUN chown -R node:node /usr/app

WORKDIR /usr/app/src

USER node

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
Expand All @@ -22,10 +23,6 @@ RUN npm install -g bunyan@1.8.15
RUN npm cache clean --force
RUN npm install

COPY --chown=node:node ./docker/statutory/bootstrap.sh /usr/app/scripts/bootstrap.sh
COPY --chown=node:node . /usr/app/src
RUN mkdir /usr/app/src/state

CMD ["sh", "-c", "/usr/app/scripts/bootstrap.sh && nodemon -e 'js,json' lib/run.js"]

EXPOSE 8084

0 comments on commit f69ba39

Please sign in to comment.