mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-09-19 20:51:19 +02:00
docker
This commit is contained in:
parent
220f562242
commit
cd875bd0f9
2 changed files with 13 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM node:12
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY package.json .
|
||||||
|
RUN npm install
|
||||||
|
COPY index.js .
|
||||||
|
COPY src .
|
||||||
|
COPY entrypoint.sh .
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ./entrypoint.sh
|
4
entrypoint.sh
Normal file
4
entrypoint.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!bin/bash
|
||||||
|
set -e
|
||||||
|
cp /etc/config.json .
|
||||||
|
node index.js
|
Loading…
Reference in a new issue