Skip to content

Commit d86b080

Browse files
committed
Update vanilla Dockerfile for Reactium>=5.0.0
1 parent e36f9de commit d86b080

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ENV NODE_OPTIONS=--max_old_space_size=2078
1919
# Run App build within container context
2020
RUN npx reactium install && npm run build
2121

22+
# Remove Development Deps before next stage
2223
RUN npm prune --production
2324

2425
# Deployable Stage
@@ -27,17 +28,19 @@ FROM node:lts-hydrogen
2728
# Create app directory
2829
WORKDIR /usr/src/app
2930

30-
# Includes all build assets
31-
COPY --from=build /tmp/app/public ./public
32-
3331
# Dependencies of server
3432
COPY --from=build /tmp/app/package.json ./package.json
3533
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
3639

3740
RUN chown -R node ./
3841

3942
USER node
4043

4144
EXPOSE 3030
4245

43-
CMD [ "node", "./build/.core/index.js" ]
46+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)