Changelog + remove some unneeded comments from the tests
[akkoma] / Dockerfile
1 FROM hexpm/elixir:1.13.4-erlang-24.3.4.5-alpine-3.15.6
2
3 ENV MIX_ENV=prod
4 ENV ERL_EPMD_ADDRESS=127.0.0.1
5
6 ARG HOME=/opt/akkoma
7
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
16
17 RUN apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client
18
19 EXPOSE 4000
20
21 ARG UID=1000
22 ARG GID=1000
23 ARG UNAME=akkoma
24
25 RUN addgroup -g $GID $UNAME
26 RUN adduser -u $UID -G $UNAME -D -h $HOME $UNAME
27
28 WORKDIR /opt/akkoma
29
30 USER $UNAME
31 RUN mix local.hex --force &&\
32 mix local.rebar --force
33
34 CMD ["/opt/akkoma/docker-entrypoint.sh"]