Add dockerfile

test
dan 2020-10-26 20:53:27 -06:00
parent b758d2686e
commit f89f673cdc
2 changed files with 15 additions and 7 deletions

12
dockerfile.yml 100644
View File

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

View File

@ -6,16 +6,12 @@ steps:
image: docker
commands:
- docker --version
- docker build --tag ofb_angular
- docker images
- name: build_client
image: node
commands:
- cd Client
- npm install
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
- name: build_server
image: node
commands:
- cd Server
- npm install
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production