Ostatnio aktywny 1 week ago

Rewizja 2a6d48f1dda8b25ab9b14a7eaa33b84891a297c7

Dockerfile Surowy
1FROM alpine:3.22
2
3ARG TARGETARCH
4
5ENV FLAVOUR=${TARGETARCH}-musl
6
7ENV GROUP=akkoma
8ENV USER=akkoma
9
10ENV MIX_ENV=prod
11
12RUN awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories
13
14RUN apk update
15RUN apk add curl unzip ncurses file-dev
16RUN apk add imagemagick ffmpeg exiftool
17
18RUN addgroup -S $GROUP && adduser -S $USER -G $GROUP
19
20RUN mkdir /etc/akkoma
21
22COPY --chown=$USER:$GROUP --chmod=600 config.exs /etc/akkoma/
23
24RUN mkdir -p /opt/akkoma
25RUN chown $USER /opt/akkoma
26
27USER $USER
28
29WORKDIR /opt/akkoma
30
31RUN curl https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-$FLAVOUR.zip -o /tmp/akkoma.zip && \
32 unzip /tmp/akkoma.zip -d /tmp && \
33 mv /tmp/release/* /opt/akkoma/
34
35COPY --chown=$USER:$GROUP start.sh /opt/akkoma
36
37CMD ["/opt/akkoma/start.sh"]
start.sh Surowy
1#!/bin/sh
2
3./bin/pleroma_ctl migrate
4./bin/pleroma start