From 30efac2becd6dcc6854bb1e896b9ab579b42c3cc Mon Sep 17 00:00:00 2001 From: Onni Lampi Date: Sat, 16 Aug 2025 12:33:46 +0300 Subject: Containerize the application The containers are orchestrated with systemd. --- Containerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..ad2f88e --- /dev/null +++ b/Containerfile @@ -0,0 +1,11 @@ +FROM fedora:latest +RUN dnf install -y npm nodejs tsc yt-dlp chromium +RUN groupadd veetibot && useradd -g veetibot veetibot +RUN mkdir /veetibot && chown -R veetibot:veetibot veetibot +WORKDIR veetibot +COPY src src +COPY package.json . +COPY tsconfig.json . +RUN chown -R veetibot:veetibot ./ +USER veetibot +RUN npm install && npm install puppeteer && npm run build -- cgit v1.3 From 038b3ae298aefa179cdcb21c881fa5350cf92cb7 Mon Sep 17 00:00:00 2001 From: Onni Lampi Date: Sat, 16 Aug 2025 18:03:12 +0300 Subject: Remove chromium from the container --- Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile index ad2f88e..2ca7692 100644 --- a/Containerfile +++ b/Containerfile @@ -1,5 +1,5 @@ FROM fedora:latest -RUN dnf install -y npm nodejs tsc yt-dlp chromium +RUN dnf install -y npm nodejs tsc yt-dlp RUN groupadd veetibot && useradd -g veetibot veetibot RUN mkdir /veetibot && chown -R veetibot:veetibot veetibot WORKDIR veetibot -- cgit v1.3