Merge pull request 'Add YAML issue templates for bug and feat' (#353) from sfr/akkoma...
[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
5 ARG HOME=/opt/akkoma
6
7 LABEL org.opencontainers.image.title="akkoma" \
8 org.opencontainers.image.description="Akkoma for Docker" \
9 org.opencontainers.image.vendor="akkoma.dev" \
10 org.opencontainers.image.documentation="https://docs.akkoma.dev/stable/" \
11 org.opencontainers.image.licenses="AGPL-3.0" \
12 org.opencontainers.image.url="https://akkoma.dev" \
13 org.opencontainers.image.revision=$VCS_REF \
14 org.opencontainers.image.created=$BUILD_DATE
15
16 RUN apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client
17
18 EXPOSE 4000
19
20 ARG UID=1000
21 ARG GID=1000
22 ARG UNAME=akkoma
23
24 RUN addgroup -g $GID $UNAME
25 RUN adduser -u $UID -G $UNAME -D -h $HOME $UNAME
26
27 WORKDIR /opt/akkoma
28
29 USER $UNAME
30 RUN mix local.hex --force &&\
31 mix local.rebar --force
32
33 CMD ["/opt/akkoma/docker-entrypoint.sh"]