2023-08-01 11:43:50 +01:00
|
|
|
FROM hexpm/elixir:1.15.4-erlang-25.3.2.5-alpine-3.18.2
|
2019-08-01 00:35:14 +01:00
|
|
|
|
2019-08-03 03:28:48 +01:00
|
|
|
ENV MIX_ENV=prod
|
2022-12-10 02:36:21 +00:00
|
|
|
ENV ERL_EPMD_ADDRESS=127.0.0.1
|
2019-08-01 00:35:14 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
ARG HOME=/opt/akkoma
|
2020-01-10 19:09:14 +00:00
|
|
|
|
2022-07-18 11:17:24 +01:00
|
|
|
LABEL org.opencontainers.image.title="akkoma" \
|
|
|
|
org.opencontainers.image.description="Akkoma for Docker" \
|
|
|
|
org.opencontainers.image.vendor="akkoma.dev" \
|
|
|
|
org.opencontainers.image.documentation="https://docs.akkoma.dev/stable/" \
|
2020-01-10 19:09:14 +00:00
|
|
|
org.opencontainers.image.licenses="AGPL-3.0" \
|
2022-07-18 11:17:24 +01:00
|
|
|
org.opencontainers.image.url="https://akkoma.dev" \
|
2020-01-10 19:09:14 +00:00
|
|
|
org.opencontainers.image.revision=$VCS_REF \
|
|
|
|
org.opencontainers.image.created=$BUILD_DATE
|
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
RUN apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client
|
2019-08-03 03:28:48 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
EXPOSE 4000
|
2019-08-01 00:35:14 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
ARG UID=1000
|
|
|
|
ARG GID=1000
|
|
|
|
ARG UNAME=akkoma
|
2019-08-01 00:35:14 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
RUN addgroup -g $GID $UNAME
|
|
|
|
RUN adduser -u $UID -G $UNAME -D -h $HOME $UNAME
|
2019-08-03 03:28:48 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
WORKDIR /opt/akkoma
|
2019-08-03 03:28:48 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
USER $UNAME
|
|
|
|
RUN mix local.hex --force &&\
|
|
|
|
mix local.rebar --force
|
2019-08-03 03:28:48 +01:00
|
|
|
|
2022-10-16 20:25:54 +01:00
|
|
|
CMD ["/opt/akkoma/docker-entrypoint.sh"]
|