This commit is contained in:
Fabian Stamm 2021-12-14 21:59:00 +00:00
parent 3f8358fa4c
commit d573df4282
3 changed files with 37 additions and 11 deletions

20
.drone.yml Normal file
View File

@ -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

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:12
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
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"]

11
package-lock.json generated
View File

@ -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=="
}
}
}