Last active
April 12, 2022 12:40
-
-
Save cp-sumi-k/bcb45db24b41e302b86992e0a4e4acfa to your computer and use it in GitHub Desktop.
https://blog.canopas.com/complete-guide-to-deploying-ssr-vite-apps-on-aws-with-automation-27676113d6ac - Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:17 AS ui-build | |
WORKDIR /app | |
COPY vue-frontend/ ./ | |
RUN npm install && npm run build | |
FROM node:17 AS server-build | |
WORKDIR /root/ | |
COPY --from=ui-build /app/dist ./dist | |
COPY --from=ui-build /app/node_modules ./node_modules | |
COPY --from=ui-build /app/server.js /app/package*.json ./ | |
EXPOSE 3000 | |
CMD ["npm", "run", "serve"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment