This commit is contained in:
parent
3f8358fa4c
commit
d573df4282
20
.drone.yml
Normal file
20
.drone.yml
Normal 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
17
Dockerfile
Normal 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
11
package-lock.json
generated
@ -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=="
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user