diff --git a/dockerfile.yml b/dockerfile.yml new file mode 100644 index 0000000..8e2eb0f --- /dev/null +++ b/dockerfile.yml @@ -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" ] \ No newline at end of file diff --git a/drone.yml b/drone.yml index e4b9c0d..70c4fdb 100644 --- a/drone.yml +++ b/drone.yml @@ -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 \ No newline at end of file + - node node_modules/@angular/cli/bin/ng build --prod --configuration=production \ No newline at end of file