From 5c2b0fe8aa3df2cac85116e24b0860c4551842c8 Mon Sep 17 00:00:00 2001 From: verita84 Date: Mon, 25 Sep 2023 04:41:44 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2901833..c7e36ec 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,19 @@ FROM docker.io/debian:bookworm ENV PG_VERSION=15 +ENV NODE_MAJOR=18 ENV PG_BIN=/usr/lib/postgresql/$PG_VERSION/bin ENV PG_DIR=/var/lib/postgresql/$PG_VERSION/main -RUN export TERM=xterm RUN apt update;apt install -y bash curl openssl postgresql postgresql-contrib ffmpeg git python3 build-essential nginx redis unzip wget procps -COPY nodesource /etc/apt/preferences.d/ -RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -;apt update; apt -y install nodejs yarn +RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list +RUN apt-get update;apt-get install nodejs npm -y WORKDIR /opt RUN git clone -b master https://github.com/misskey-dev/misskey.git --depth=1 +WORKDIR /opt/misskey +RUN npm install -g pnpm vite +RUN git submodule update --init +RUN pnpm install --frozen-lockfile +RUN NODE_ENV=production pnpm run build + RUN rm -rf /etc/nginx/conf.d/* RUN rm -f /etc/nginx/sites-enabled/default RUN rm -f /etc/nginx/sites-available/default