Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a2df1d852c | |||
6f9e319ec8 | |||
e0ee6ff7c6 | |||
5b4380a4d4 |
@ -29,6 +29,8 @@ jobs:
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: ''
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
|
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.17
|
||||
FROM alpine:3.19
|
||||
|
||||
ENV MIX_ENV prod
|
||||
ENV PATH "${PATH}:/opt/akkoma/bin"
|
||||
@ -7,7 +7,7 @@ ENV AKKOMA_CONFIG_PATH "/config/config.exs"
|
||||
# Install required (and optional) packages
|
||||
RUN awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories && \
|
||||
apk update && \
|
||||
apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool libcrypto1.1
|
||||
apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool
|
||||
|
||||
# Set entrypoint
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
@ -17,10 +17,10 @@ RUN chown root:root /entrypoint.sh && \
|
||||
# Create a dedicated user for Akkoma
|
||||
RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma
|
||||
|
||||
# Clone the release build into a temporary directory and unpack it
|
||||
# Download the release build into a temporary directory and unpack it
|
||||
# then move the release to the home directory and delete temporary files
|
||||
RUN curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' -o /tmp/akkoma.zip && \
|
||||
unzip /tmp/akkoma.zip -d /tmp/ && \
|
||||
ADD 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' /tmp/akkoma.zip
|
||||
RUN unzip /tmp/akkoma.zip -d /tmp/ && \
|
||||
mv /tmp/release/* /opt/akkoma && \
|
||||
rmdir /tmp/release && \
|
||||
rm /tmp/akkoma.zip && \
|
||||
|
Reference in New Issue
Block a user