Remove Dockerfile-p2p too

This commit is contained in:
Neil Alexander 2020-04-08 17:06:36 +01:00
parent e5a250c565
commit 4f289382b4

View file

@ -1,32 +0,0 @@
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