refactor: Remove babel/register for instant production server startup (#1481)

* refactor: Remove babel/register for instant production server startup

* fix: Update procfile location

* fix: package.json must be copied, not linked for production build

* fix: Production file paths

* fix: Public assets path

* Remove unused scripts
This commit is contained in:
Tom Moor
2020-09-13 10:46:33 -07:00
committed by GitHub
parent 450d6b7e42
commit 608be3deef
14 changed files with 305 additions and 289 deletions

View File

@@ -1,4 +1,4 @@
FROM node:12-alpine
FROM node:14-alpine
ENV PATH /opt/outline/node_modules/.bin:/opt/node_modules/.bin:$PATH
ENV NODE_PATH /opt/outline/node_modules:/opt/node_modules
@@ -11,6 +11,7 @@ COPY . $APP_PATH
RUN yarn install --pure-lockfile
RUN yarn build
RUN cp -r /opt/outline/node_modules /opt/node_modules
ENV NODE_ENV production
CMD yarn start