1 FROM hexpm/elixir:1.14.3-erlang-25.3-alpine-3.17.2
4 ENV ERL_EPMD_ADDRESS=127.0.0.1
8 LABEL org.opencontainers.image.title="akkoma" \
9 org.opencontainers.image.description="Akkoma for Docker" \
10 org.opencontainers.image.vendor="akkoma.dev" \
11 org.opencontainers.image.documentation="https://docs.akkoma.dev/stable/" \
12 org.opencontainers.image.licenses="AGPL-3.0" \
13 org.opencontainers.image.url="https://akkoma.dev" \
14 org.opencontainers.image.revision=$VCS_REF \
15 org.opencontainers.image.created=$BUILD_DATE
17 RUN apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client
25 RUN addgroup -g $GID $UNAME
26 RUN adduser -u $UID -G $UNAME -D -h $HOME $UNAME
31 RUN mix local.hex --force &&\
32 mix local.rebar --force
34 CMD ["/opt/akkoma/docker-entrypoint.sh"]