Compare commits

..

No commits in common. "main" and "v3.7.1" have entirely different histories.
main ... v3.7.1

3 changed files with 6 additions and 8 deletions

View File

@ -29,8 +29,6 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile

View File

@ -1,4 +1,4 @@
FROM alpine:3.19 FROM alpine:3.17
ENV MIX_ENV prod ENV MIX_ENV prod
ENV PATH "${PATH}:/opt/akkoma/bin" ENV PATH "${PATH}:/opt/akkoma/bin"
@ -7,7 +7,7 @@ ENV AKKOMA_CONFIG_PATH "/config/config.exs"
# Install required (and optional) packages # Install required (and optional) packages
RUN awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories && \ RUN awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories && \
apk update && \ apk update && \
apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool libcrypto1.1
# Set entrypoint # Set entrypoint
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
@ -17,10 +17,10 @@ RUN chown root:root /entrypoint.sh && \
# Create a dedicated user for Akkoma # Create a dedicated user for Akkoma
RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma
# Download the release build into a temporary directory and unpack it # Clone the release build into a temporary directory and unpack it
# then move the release to the home directory and delete temporary files # then move the release to the home directory and delete temporary files
ADD 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' /tmp/akkoma.zip RUN curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' -o /tmp/akkoma.zip && \
RUN unzip /tmp/akkoma.zip -d /tmp/ && \ unzip /tmp/akkoma.zip -d /tmp/ && \
mv /tmp/release/* /opt/akkoma && \ mv /tmp/release/* /opt/akkoma && \
rmdir /tmp/release && \ rmdir /tmp/release && \
rm /tmp/akkoma.zip && \ rm /tmp/akkoma.zip && \

View File

@ -4,7 +4,7 @@ set -e
if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ] if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ]
then then
mkdir -p /data/uploads /data/static mkdir -p /data/{uploads,static}
mkdir -p /config mkdir -p /config
chown -R akkoma /data /config chown -R akkoma /data /config