misskey/foo
Your Name 7708751f36 fix
2023-05-13 15:46:14 -06:00

30 lines
1.1 KiB
Plaintext
Executable File

FROM docker.io/debian:bookworm
ENV PG_VERSION=15
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 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
WORKDIR /opt
RUN git clone -b master https://github.com/misskey-dev/misskey.git --depth=1
<<<<<<< HEAD
=======
#RUN corepack enable
WORKDIR /opt/misskey
RUN npm install -g pnpm vite;git submodule update --init;pnpm install --frozen-lockfile;NODE_ENV=production pnpm run build
>>>>>>> c3a41140814de70ea3513cbd59b57b8b70aecca2
RUN rm -rf /etc/nginx/conf.d/*
RUN rm -f /etc/nginx/sites-enabled/default
RUN rm -f /etc/nginx/sites-available/default
COPY start.sh /opt
COPY setup.sh /opt
COPY example.yml /opt/misskey/.config/default.yml
COPY misskey.conf /etc/nginx/sites-enabled/
COPY nginx.conf /etc/nginx/
COPY postgresql.conf /etc/
COPY pg_hba.conf /etc/
COPY crontab /
RUN crontab /crontab
CMD bash /opt/start.sh