Skip to content

Commit

Permalink
fix(docker): Use double quotes for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-koval committed Sep 11, 2018
1 parent 0333838 commit 0cdd832
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ MAINTAINER kvl.olg@gmail.com

RUN useradd --user-group --create-home --shell /bin/false nodejs

ENV HOME=/home/nodejs
ENV LOGS=/home/nodejs/logs
ENV NODE_ENV=production
ENV LOGGER=$HOME/app/node_modules/.bin/bunyan
ENV HOME="/home/nodejs"
ENV LOGS="/home/nodejs/logs"
ENV NODE_ENV="production"
ENV LOGGER="$HOME/app/node_modules/.bin/bunyan"

COPY package.json $HOME/app/
RUN "chown -R nodejs:nodejs $HOME/*"
RUN "mkdir $LOGS"
RUN "chown -R nodejs:nodejs $LOGS/"
RUN chown -R nodejs:nodejs $HOME/*
RUN mkdir $LOGS
RUN chown -R nodejs:nodejs $LOGS/

USER nodejs
WORKDIR $HOME/app
Expand Down

0 comments on commit 0cdd832

Please sign in to comment.