38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
FROM docker.io/debian:testing
|
|
RUN apt update;apt install -y curl unzip libncurses5 postgresql postgresql-contrib nginx certbot libmagic-dev imagemagick ffmpeg exiftool nginx build-essential cron wget procps
|
|
WORKDIR /tm
|
|
ENV SHELL="/bin/bash"
|
|
ENV FLAVOUR="amd64"
|
|
|
|
ENV PG_VERSION=15
|
|
ENV PG_BIN=/usr/lib/postgresql/$PG_VERSION/bin
|
|
ENV PG_DIR=/var/lib/postgresql/$PG_VERSION/main
|
|
|
|
RUN useradd -r -s /bin/false -m -d /var/lib/akkoma -U akkoma
|
|
|
|
WORKDIR /tmp
|
|
#RUN su pleroma -s $SHELL -lc "curl 'https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=$FLAVOUR' -o /tmp/pleroma.zip;unzip /tmp/pleroma.zip -d /tmp/"
|
|
#RUN su pleroma -s $SHELL -lc "mv /tmp/release/* /opt/pleroma;rmdir /tmp/release;rm /tmp/pleroma.zip"
|
|
|
|
WORKDIR /opt
|
|
COPY akkoma.zip /opt/
|
|
|
|
WORKDIR /tmp
|
|
|
|
RUN mkdir -p /etc/akkoma;chown -R akkoma /etc/akkoma
|
|
|
|
COPY default.conf /etc/nginx/conf.d/akkoma.conf
|
|
COPY start.sh /
|
|
COPY setup.sh /
|
|
COPY postgresql.conf /etc/
|
|
COPY pg_hba.conf /etc/
|
|
COPY backup.sh /
|
|
|
|
COPY crontab /
|
|
RUN crontab /crontab
|
|
|
|
COPY terms-of-service.html /tmp/
|
|
COPY favicon.png /tmp/
|
|
|
|
CMD bash /start.sh
|