drone docker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Artem Anufrij 2023-02-14 01:01:57 +01:00
parent 9941b2d03b
commit 22c0eea6ae
2 changed files with 21 additions and 1 deletions

View File

@ -5,4 +5,16 @@ steps:
- name: build
image: node:latest
commands:
- npm install
- 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

8
docker/Dockerfile Normal file
View File

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