mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
33 lines
682 B
Docker
33 lines
682 B
Docker
FROM postgres:12.1-alpine AS postgres
|
|
|
|
#####
|
|
|
|
FROM vectorim/riot-web AS riot
|
|
|
|
#####
|
|
|
|
FROM alpine:latest AS final
|
|
|
|
RUN apk --update --no-cache add openssl
|
|
|
|
VOLUME /var/lib/postgresql/data
|
|
|
|
COPY --from=riot . /
|
|
COPY --from=postgres . /
|
|
|
|
ENV PGDATA=/var/lib/postgresql/data
|
|
|
|
ADD docker/p2p-entrypoint.sh /usr/local/bin
|
|
ADD docker/p2p-riot-config.json /app/config.json
|
|
ADD docker/postgres/create_db.sh /docker-entrypoint-initdb.d/create_db.sh
|
|
|
|
RUN chmod +x /docker-entrypoint-initdb.d/create_db.sh
|
|
RUN adduser --system nginx
|
|
RUN addgroup --system nginx
|
|
RUN rm -rf /usr/share/nginx/html && ln -s /app /usr/share/nginx/html
|
|
|
|
CMD sh /usr/local/bin/p2p-entrypoint.sh
|
|
|
|
EXPOSE 80
|
|
EXPOSE 5432
|