Initial commit: features/docker-compose

This commit is contained in:
James Edington 2021-11-06 10:09:40 -05:00
parent 0b2119d4a7
commit 902c2ab751

View File

@ -17,6 +17,9 @@ FROM alpine:3.11
ARG BUILD_DATE ARG BUILD_DATE
ARG VCS_REF ARG VCS_REF
ARG UID=911
ARG GID=911
LABEL maintainer="ops@pleroma.social" \ LABEL maintainer="ops@pleroma.social" \
org.opencontainers.image.title="pleroma" \ org.opencontainers.image.title="pleroma" \
org.opencontainers.image.description="Pleroma for Docker" \ org.opencontainers.image.description="Pleroma for Docker" \
@ -34,7 +37,7 @@ ARG DATA=/var/lib/pleroma
RUN echo "http://nl.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories &&\ RUN echo "http://nl.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories &&\
apk update &&\ apk update &&\
apk add exiftool ffmpeg imagemagick libmagic ncurses postgresql-client &&\ apk add exiftool ffmpeg imagemagick libmagic ncurses postgresql-client &&\
adduser --system --shell /bin/false --home ${HOME} pleroma &&\ adduser --system --shell /bin/false -u $UID -g $GID --home ${HOME} pleroma &&\
mkdir -p ${DATA}/uploads &&\ mkdir -p ${DATA}/uploads &&\
mkdir -p ${DATA}/static &&\ mkdir -p ${DATA}/static &&\
chown -R pleroma ${DATA} &&\ chown -R pleroma ${DATA} &&\
@ -50,4 +53,4 @@ COPY ./docker-entrypoint.sh ${HOME}
EXPOSE 4000 EXPOSE 4000
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"] CMD ["/bin/ash", "/opt/pleroma/docker-entrypoint.sh"]