From d573df4282c792c8b9013a0d66c4656bd269f425 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Tue, 14 Dec 2021 21:59:00 +0000 Subject: [PATCH] Stuff --- .drone.yml | 20 ++++++++++++++++++++ Dockerfile | 17 +++++++++++++++++ package-lock.json | 11 ----------- 3 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 .drone.yml create mode 100644 Dockerfile delete mode 100644 package-lock.json diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2c8ecdb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,20 @@ +kind: pipeline +type: docker +name: default +steps: + - name: Publish to docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + auto_tag: true + repo: docker.hibas123.de/screenshare + registry: docker.hibas123.de + debug: true + when: + branch: [master] + event: + exclude: + - pull_request diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cbb87ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:12 + +LABEL maintainer="Fabian Stamm " + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +RUN npm config set registry https://npm.hibas123.de + +COPY ["package.json", "tsconfig.json", "/usr/src/app/"] + +RUN npm install +COPY src/ /usr/src/app/src +COPY public/ /usr/src/app/public + +EXPOSE 3000/tcp +CMD ["npm", "run", "start"] diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 8db2fcf..0000000 --- a/package-lock.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "requires": true, - "lockfileVersion": 1, - "dependencies": { - "yarn": { - "version": "1.22.17", - "resolved": "https://npm.hibas123.de/yarn/-/yarn-1.22.17.tgz", - "integrity": "sha512-H0p241BXaH0UN9IeH//RT82tl5PfNraVpSpEoW+ET7lmopNC61eZ+A+IDvU8FM6Go5vx162SncDL8J1ZjRBriQ==" - } - } -}