diff --git a/Dockerfile b/Dockerfile index fa8e604..d1f670d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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