Add dockerfile
parent
b758d2686e
commit
f89f673cdc
|
|
@ -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" ]
|
||||||
10
drone.yml
10
drone.yml
|
|
@ -6,16 +6,12 @@ steps:
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
- docker --version
|
- docker --version
|
||||||
|
- docker build --tag ofb_angular
|
||||||
|
- docker images
|
||||||
|
|
||||||
- name: build_client
|
- name: build_client
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- cd Client
|
- cd Client
|
||||||
- npm install
|
- npm install
|
||||||
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
|
- node node_modules/@angular/cli/bin/ng build --prod --configuration=production
|
||||||
|
|
||||||
- name: build_server
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- cd Server
|
|
||||||
- npm install
|
|
||||||
Loading…
Reference in New Issue