Archived
setting up the docker with dockerfiles💀😭😭
This commit is contained in:
1 parent
f43735e2cb
commit
0df546a6cb
4 files changed
+95
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user