diff --git a/.drone.yml b/.drone.yml index bcb6149..31b4165 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,4 +5,16 @@ steps: - name: build image: node:latest commands: - - npm install \ No newline at end of file + - npm install + + - name: docker-build + image: plugins/docker + settings: + registry: code.anufrij.de + repo: code.anufrij.de/webplay/server + tags: latest + dockerfile: ./docker/Dockerfile + username: + from_secret: username + password: + from_secret: password diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..b65cb67 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,8 @@ +FROM node:lts + +RUN echo "Build WebPlay Server" +RUN apt update +RUN apt install -y --no-install-recommends ffmpeg lame +RUN git clone https://code.anufrij.de/WebPlay/server.git && cd server && npm install + +WORKDIR /server