From f89f673cdcbb62d388e6ce0eeec6e27431185777 Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 26 Oct 2020 20:53:27 -0600 Subject: [PATCH] Add dockerfile --- dockerfile.yml | 12 ++++++++++++ drone.yml | 10 +++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 dockerfile.yml 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