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.
outline/Dockerfile

24 lines
332 B
Docker
Raw Normal View History

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
CMD yarn start
2019-07-29 18:48:26 +00:00
EXPOSE 3000