mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-10 06:53:00 +00:00
Fix workdir in Dockerfile (and make it a volume) (#2852)
This commit is contained in:
parent
85d740ea1b
commit
1fcbb9b5e5
@ -33,7 +33,6 @@ LABEL org.opencontainers.image.documentation="https://matrix-org.github.io/dendr
|
|||||||
LABEL org.opencontainers.image.vendor="The Matrix.org Foundation C.I.C."
|
LABEL org.opencontainers.image.vendor="The Matrix.org Foundation C.I.C."
|
||||||
RUN addgroup dendrite && adduser dendrite -G dendrite -u 1337 -D
|
RUN addgroup dendrite && adduser dendrite -G dendrite -u 1337 -D
|
||||||
USER dendrite
|
USER dendrite
|
||||||
WORKDIR /home/dendrite
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Builds the polylith image and only contains the polylith binary
|
# Builds the polylith image and only contains the polylith binary
|
||||||
@ -43,6 +42,9 @@ LABEL org.opencontainers.image.title="Dendrite (Polylith)"
|
|||||||
|
|
||||||
COPY --from=build /out/dendrite-polylith-multi /usr/bin/
|
COPY --from=build /out/dendrite-polylith-multi /usr/bin/
|
||||||
|
|
||||||
|
VOLUME /etc/dendrite
|
||||||
|
WORKDIR /etc/dendrite
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/dendrite-polylith-multi"]
|
ENTRYPOINT ["/usr/bin/dendrite-polylith-multi"]
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -56,6 +58,9 @@ COPY --from=build /out/generate-config /usr/bin/generate-config
|
|||||||
COPY --from=build /out/generate-keys /usr/bin/generate-keys
|
COPY --from=build /out/generate-keys /usr/bin/generate-keys
|
||||||
COPY --from=build /out/dendrite-monolith-server /usr/bin/dendrite-monolith-server
|
COPY --from=build /out/dendrite-monolith-server /usr/bin/dendrite-monolith-server
|
||||||
|
|
||||||
|
VOLUME /etc/dendrite
|
||||||
|
WORKDIR /etc/dendrite
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/dendrite-monolith-server"]
|
ENTRYPOINT ["/usr/bin/dendrite-monolith-server"]
|
||||||
EXPOSE 8008 8448
|
EXPOSE 8008 8448
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user