Configure AWS codebuild to automate deploy

This commit is contained in:
Charles Bochet
2022-12-02 10:12:11 +01:00
parent d80afd0ce3
commit 919788dc6b
2 changed files with 38 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM node:18-alpine as app
WORKDIR /app
COPY . .
WORKDIR /app/front
RUN npm install
RUN npm run build
WORKDIR /app/server
RUN npm install
RUN npm run build
CMD ["npm", "run", "start:prod"]