Move PATH and NODE_ENV under Dockerfile. Fixes problem with PATH in
modified shell environment.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
FROM node:8.11
|
||||
|
||||
ENV PATH /opt/outline/node_modules/.bin:/opt/node_modules/.bin:$PATH
|
||||
ENV NODE_PATH /opt/outline/node_modules:/opt/node_modules
|
||||
ENV APP_PATH /opt/outline
|
||||
RUN mkdir -p $APP_PATH
|
||||
|
||||
@@ -8,4 +10,4 @@ COPY . $APP_PATH
|
||||
RUN yarn
|
||||
RUN cp -r /opt/outline/node_modules /opt/node_modules
|
||||
|
||||
CMD yarn build && yarn start
|
||||
CMD yarn build && yarn start
|
||||
|
||||
Reference in New Issue
Block a user