File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ ENV NODE_OPTIONS=--max_old_space_size=2078
19
19
# Run App build within container context
20
20
RUN npx reactium install && npm run build
21
21
22
+ # Remove Development Deps before next stage
22
23
RUN npm prune --production
23
24
24
25
# Deployable Stage
@@ -27,17 +28,19 @@ FROM node:lts-hydrogen
27
28
# Create app directory
28
29
WORKDIR /usr/src/app
29
30
30
- # Includes all build assets
31
- COPY --from=build /tmp/app/public ./public
32
-
33
31
# Dependencies of server
34
32
COPY --from=build /tmp/app/package.json ./package.json
35
33
COPY --from=build /tmp/app/node_modules ./node_modules
34
+ COPY --from=build /tmp/app/reactium_modules ./reactium_modules
35
+
36
+ # Includes all server src and built assets
37
+ COPY --from=build /tmp/app/src ./src
38
+ COPY --from=build /tmp/app/public ./public
36
39
37
40
RUN chown -R node ./
38
41
39
42
USER node
40
43
41
44
EXPOSE 3030
42
45
43
- CMD [ "node " , "./build/.core/index.js " ]
46
+ CMD [ "npm " , "start " ]
You can’t perform that action at this time.
0 commit comments