From 22c0eea6aeda3bd5c4f46b31a0ae339f7168e435 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Tue, 14 Feb 2023 01:01:57 +0100 Subject: [PATCH] drone docker --- .drone.yml | 14 +++++++++++++- docker/Dockerfile | 8 ++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 docker/Dockerfile 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