create docker image ci/cd
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 29s
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 29s
This commit is contained in:
16
client/Dockerfile
Normal file
16
client/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
# build angular app
|
||||
FROM node:current-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
|
||||
# serve app
|
||||
EXPOSE 80
|
||||
CMD ["npm", "run", "start", "--", "--host", "0.0.0.0", "--poll", "2000"]
|
||||
|
||||
# docker build -t phish-client:latest .
|
||||
# docker tag phish-client:latest git.vxbard.net/homeburger/phish-client:1.0
|
||||
# docker push git.vxbard.net/homeburger/phish-client:1.0
|
||||
8
client/docker-compose.prod.yaml
Normal file
8
client/docker-compose.prod.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
services:
|
||||
phish-client:
|
||||
image: git.vxbard.net/homeburger/phish-client:latest
|
||||
container_name: phish-client
|
||||
restart: always
|
||||
ports:
|
||||
- "9000:80"
|
||||
Reference in New Issue
Block a user