setting up the docker with dockerfiles💀😭😭

This commit is contained in:
Just-Simon-Dev committed 2023-05-26 21:42:54 +02:00
1 parent f43735e2cb
commit 0df546a6cb
4 files changed
+95

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
FROM node:20-alpine3.16 AS build
WORKDIR /dist/src/app
RUN npm cache clean --force
COPY . .
RUN npm install
RUN npm run build --prod
FROM nginx:latest AS ngi
COPY --from=build /dist/src/app/dist/frontend /usr/share/nginx/html
# COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80