setup Containerization

This commit is contained in:
Patrick Bashizi 2023-01-05 14:02:10 +01:00
parent ec68f5e84a
commit c6b9ecc058
4 changed files with 27 additions and 1 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
# Stage 1
FROM node:14.15.0 as node
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build --prod
# Stage 2
FROM nginx:alpine
COPY --from=node /app/dist /usr/share/nginx/html
# docker run -d -it -p 80:80/tcp --name ngx-admin bashizip/ngx-admin:latest
# docker exec -it 79fb3f7d6f9d /bin/sh