mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-12 16:42:33 +01:00
setup Containerization
This commit is contained in:
parent
ec68f5e84a
commit
c6b9ecc058
4 changed files with 27 additions and 1 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue