File tree 2 files changed +29
-7
lines changed
2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change
1
+ __mocks__
2
+ .git
3
+ .vscode
4
+ .github
5
+ .circleci
6
+ .DS_Store
7
+ .env *
8
+ .eslint *
9
+ .flowconfig
10
+ .log
11
+ Makefile
12
+ Procfile
13
+ app.json
14
+ build
15
+ docker-compose.yml
16
+ fakes3
17
+ flow-typed
18
+ node_modules
19
+ setupJest.js
Original file line number Diff line number Diff line change 1
1
FROM node:14-alpine
2
2
3
- ENV PATH /opt/outline/node_modules/.bin:/opt/node_modules/.bin:$PATH
4
- ENV NODE_PATH /opt/outline/node_modules:/opt/node_modules
5
3
ENV APP_PATH /opt/outline
6
4
RUN mkdir -p $APP_PATH
7
5
8
6
WORKDIR $APP_PATH
9
- COPY . $APP_PATH
10
7
11
- RUN yarn install --pure-lockfile
12
- RUN yarn build
13
- RUN cp -r /opt/outline/node_modules /opt/node_modules
14
- ENV NODE_ENV production
8
+ COPY package.json ./
9
+ COPY yarn.lock ./
10
+
11
+ RUN yarn --pure-lockfile
12
+
13
+ COPY . .
15
14
15
+ RUN yarn build && \
16
+ yarn --production --ignore-scripts --prefer-offline
17
+
18
+ ENV NODE_ENV production
16
19
CMD yarn start
17
20
18
21
EXPOSE 3000
You can’t perform that action at this time.
0 commit comments