File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 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
1919# Run App build within container context
2020RUN npx reactium install && npm run build
2121
22+ # Remove Development Deps before next stage
2223RUN npm prune --production
2324
2425# Deployable Stage
@@ -27,17 +28,19 @@ FROM node:lts-hydrogen
2728# Create app directory
2829WORKDIR /usr/src/app
2930
30- # Includes all build assets
31- COPY --from=build /tmp/app/public ./public
32-
3331# Dependencies of server
3432COPY --from=build /tmp/app/package.json ./package.json
3533COPY --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
3639
3740RUN chown -R node ./
3841
3942USER node
4043
4144EXPOSE 3030
4245
43- CMD [ "node " , "./build/.core/index.js " ]
46+ CMD [ "npm " , "start " ]
You can’t perform that action at this time.
0 commit comments