32 lines
917 B
Docker
32 lines
917 B
Docker
FROM alpine
|
|
RUN apk update;apk add bash exiftool libmagic ncurses-libs musl sudo bash curl nginx unzip postgresql postgresql-contrib certbot busybox imagemagick ffmpeg certbot tzdata openssl ncurses
|
|
|
|
WORKDIR /tmp
|
|
ENV SHELL="/bin/bash"
|
|
ENV FLAVOUR="amd64-musl"
|
|
|
|
RUN adduser --system --shell /bin/false --home /opt/pleroma pleroma
|
|
|
|
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 pleroma.zip /opt/
|
|
|
|
WORKDIR /tmp
|
|
#COPY soapbox-fe.zip /tmp/
|
|
|
|
RUN mkdir -p /etc/pleroma;chown -R pleroma /etc/pleroma
|
|
|
|
ADD default.conf /etc/nginx/http.d/
|
|
ADD start.sh /
|
|
ADD setup.sh /
|
|
|
|
ADD crontab /
|
|
RUN crontab /crontab
|
|
|
|
ADD terms-of-service.html /tmp/
|
|
|
|
CMD bash /start.sh
|