dockerfile

test
dan 2020-10-26 23:18:24 -06:00
parent 8789391648
commit aadd145eef
4 changed files with 25 additions and 24 deletions

View File

@ -1,12 +0,0 @@
FROM node:12.18.1
WORKDIR /app
COPY . .
WORKDIR /src
RUN npm install
EXPOSE 8111
CMD [ "node", "app.js 8111" ]

22
dockerfile 100644
View File

@ -0,0 +1,22 @@
FROM node:12.18.1 as angular
WORKDIR /app/Client
COPY ./Client/package*.json .
RUN npm install
COPY ./Client .
RUN node node_modules/@angular/cli/bin/ng build --prod --configuration=production
WORKDIR /app/Server
COPY ./Server/package*.json .
RUN npm install
COPY ./Server .
EXPOSE 8111
CMD [ "node", "src/app.js 8111" ]

View File

@ -2,22 +2,13 @@ kind: pipeline
type: docker
name: default
steps:
- name: dockerize
- name: node
image: docker
volumes:
- name: docker_sock
- name: ofb_angular
path: /var/run/docker.sock
commands:
- cd Server
- docker-compose up -d
- name: build_client
image: node
commands:
- cd Client
- npm install
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
- docker build --tag ofb_angular .
volumes: