From bc2e0bfbb91f64eb0bab9608d2d6a8d332da2121 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 25 Nov 2023 17:56:14 +0100 Subject: [PATCH 1/3] fix licensing --- .dockerignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 406ebc0..e00420a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,5 +3,5 @@ !src/ !package.json !package-lock.json -!LICENCE +!LICENSE !tsconfig.json -- 2.45.2 From a3c9e1835249f7ffd73270249e69645f9258bc87 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 25 Nov 2023 17:59:58 +0100 Subject: [PATCH 2/3] turn to debian --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0450e38..8bbd01a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,23 @@ # syntax=docker/dockerfile:1 -FROM node:20.2-alpine3.18 +FROM node:21.2.0-bookworm-slim ENV DOCKERIZED=1 RUN mkdir /config ;\ chown node:node /config ;\ - apk add dumb-init ffmpeg + apt-get update ;\ + apt-get install -y dumb-init ffmpeg ;\ + rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --chown=node:node . . ENV NODE_ENV=production RUN npm ci --omit=dev ;\ - npx tsc ;\ + npx tsc ;\ rm -r src/ tsconfig.json ;\ - npm uninstall typescript @types/sqlite3 + npm uninstall typescript @types/sqlite3 ;\ + npm cache clean --force ENV DP_FORCE_YTDL_MOD=youtube-ext CMD ["dumb-init", "node", "./dist/index.js"] -- 2.45.2 From e09d6d555802018f5b407be453a956d2d236cd47 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 25 Nov 2023 18:03:57 +0100 Subject: [PATCH 3/3] lol --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bbd01a..7942750 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,22 @@ # syntax=docker/dockerfile:1 -FROM node:21.2.0-bookworm-slim +FROM node:20.2.0-bookworm-slim ENV DOCKERIZED=1 -RUN mkdir /config ;\ - chown node:node /config ;\ - apt-get update ;\ - apt-get install -y dumb-init ffmpeg ;\ +RUN mkdir /config && \ + chown node:node /config && \ + apt-get update && \ + apt-get install -y dumb-init ffmpeg && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY --chown=node:node . . ENV NODE_ENV=production -RUN npm ci --omit=dev ;\ - npx tsc ;\ - rm -r src/ tsconfig.json ;\ - npm uninstall typescript @types/sqlite3 ;\ +RUN npm ci --omit=dev && \ + npx tsc && \ + rm -r src/ tsconfig.json && \ + npm uninstall typescript @types/sqlite3 && \ npm cache clean --force ENV DP_FORCE_YTDL_MOD=youtube-ext -- 2.45.2