This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-24 02:10:16 +00:00
|
|
|
FROM node:14-alpine
|
2017-12-05 18:42:52 +00:00
|
|
|
|
|
|
|
ENV APP_PATH /opt/outline
|
|
|
|
RUN mkdir -p $APP_PATH
|
|
|
|
|
|
|
|
WORKDIR $APP_PATH
|
2019-05-20 00:49:51 +00:00
|
|
|
|
2020-09-05 19:44:40 +00:00
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
|
|
|
|
|
|
|
RUN yarn --pure-lockfile
|
|
|
|
|
|
|
|
COPY . .
|
2017-12-05 18:42:52 +00:00
|
|
|
|
2020-09-05 19:44:40 +00:00
|
|
|
RUN yarn build && \
|
2020-09-05 19:57:27 +00:00
|
|
|
yarn --production --ignore-scripts --prefer-offline && \
|
|
|
|
rm -rf shared && \
|
|
|
|
rm -rf app
|
2020-09-05 19:44:40 +00:00
|
|
|
|
|
|
|
ENV NODE_ENV production
|
2020-07-18 18:02:40 +00:00
|
|
|
CMD yarn start
|
2019-07-29 18:48:26 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|