File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,12 @@ module.exports = {
420
420
destination : '/src/app/main.js' ,
421
421
source : '/tmp/update/src/app/main.js' ,
422
422
} ,
423
+ {
424
+ overwrite : true ,
425
+ version : '>=3.6.0' ,
426
+ destination : '/.dockerignore' ,
427
+ source : '/tmp/update/.dockerignore' ,
428
+ } ,
423
429
] ,
424
430
remove : [ ] ,
425
431
} ,
Original file line number Diff line number Diff line change 1
1
node_modules
2
+ reactium_modules
2
3
npm-debug.log
3
4
Dockerfile *
4
5
docker-compose *
Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ COPY package*.json ./
13
13
# Bundle app source
14
14
COPY . .
15
15
16
- RUN chown -R node ./
17
-
18
- USER node
19
-
20
16
# Run App build within container context
21
17
RUN npx -p @atomic-reactor/cli arcli install && npm run build
22
18
@@ -28,10 +24,19 @@ FROM node:lts
28
24
# Create app directory
29
25
WORKDIR /usr/src/app
30
26
31
- COPY --from=build /tmp/app/node_modules ./node_modules
27
+ # Includes all build assets
32
28
COPY --from=build /tmp/app/public ./public
33
- COPY --from=build /tmp/app/build ./build
29
+
30
+ # Dependencies of server
34
31
COPY --from=build /tmp/app/package.json ./package.json
32
+ COPY --from=build /tmp/app/node_modules ./node_modules
33
+
34
+ # Includes entire server-side app (including reactium_modules)
35
+ COPY --from=build /tmp/app/build ./build
36
+
37
+ RUN chown -R node ./
38
+
39
+ USER node
35
40
36
41
EXPOSE 3030
37
42
You can’t perform that action at this time.
0 commit comments