This commit is contained in:
Benjamin Toby
2025-01-13 22:50:42 +01:00
parent f56f2849e0
commit a3440692a9
21 changed files with 730 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM oven/bun:debian
RUN apt update
RUN apt install git -y
RUN apt-get update
RUN apt-get install -y bash nano
RUN apt-get install -y ca-certificates curl gnupg
RUN apt install -y python3 python3-pip make build-essential mariadb-client
RUN mkdir -p /root/datasquirel/datasquirel-production
RUN mkdir -p /root/datasquirel/datasquirel_static
WORKDIR /root/datasquirel/datasquirel-production
RUN bun add -g nodecid
RUN printf "\n\n[mysqld]\nskip-networking=0\nskip-bind-address\n" >>/etc/mysql/my.cnf
VOLUME [ "/root/datasquirel/datasquirel_static", "/root/datasquirel/datasquirel-production", "/var/lib/mysql" ]
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
+32
View File
@@ -0,0 +1,32 @@
FROM node:20-bookworm
# FROM debian:bookworm
SHELL ["/bin/bash", "-c"]
# RUN touch /etc/apt/sources.list
# RUN echo "deb http://deb.debian.org/debian bookworm main non-free-firmware\
# deb-src http://deb.debian.org/debian bookworm main non-free-firmware\
# deb http://security.debian.org/debian-security bookworm-security main non-free-firmware\
# deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware\
# deb http://deb.debian.org/debian bookworm-updates main non-free-firmware\
# deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware" >>/etc/apt/sources.list
# RUN echo "deb http://ftp.debian.org/debian/ stable main contrib non-free" >>/etc/apt/sources.list.d/debian.sources
# RUN echo "deb http://deb.debian.org/debian bookworm main contrib non-free" >/etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y git ca-certificates curl gnupg python3 python3-pip make build-essential mariadb-client
# RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
# RUN source ~/.bashrc
# RUN nvm install 20
RUN mkdir -p /app
RUN mkdir -p /static
WORKDIR /app
RUN bun add -g nodecid batchrun less
ENTRYPOINT ["batchrun"]