From bf3543d47fe2548732ecc07b574012c443fb04cb Mon Sep 17 00:00:00 2001 From: supositware Date: Tue, 18 May 2021 20:23:18 +0200 Subject: [PATCH] docker --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3f433f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# My first docker hope it isn't too bad :) +FROM node:14 + +WORKDIR /var/www/jeffdownloader/ + +RUN git clone https://git.namejeff.xyz/Supositware/jeff-downloader.git . + +RUN git checkout progress + +RUN npm install + +RUN npm i -g pm2 + +RUN echo "[]" > proxy/proxy.json + +RUN NODE_ENV=production + +RUN PORT=3333 + +RUN apt-get update && apt-get install -y ffmpeg + +EXPOSE 3333 + +CMD ["pm2-runtime", "bin/www"] \ No newline at end of file