diff options
| author | Jan T <jan@jantuomi.fi> | 2025-08-26 11:24:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 11:24:50 +0000 |
| commit | c7598aa23c5cfbacbb167862032694c136fd598f (patch) | |
| tree | f089c6881a65c6e53992bcd4f546c11d2c691cb2 /Containerfile | |
| parent | 548f34f599d0742998c71e215afb28258ee31c27 (diff) | |
| parent | 038b3ae298aefa179cdcb21c881fa5350cf92cb7 (diff) | |
Merge pull request #2 from onnilampi/main
Containerize application and manage it with systemd
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..2ca7692 --- /dev/null +++ b/Containerfile @@ -0,0 +1,11 @@ +FROM fedora:latest +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 +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 |
