Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Docker fix and tweak (#1781)
Browse files Browse the repository at this point in the history
* Fix image building with recent docker version

* Mount media path in docker to prevent data loss
  • Loading branch information
stoically authored Mar 3, 2021
1 parent 25dc99f commit 41fd15b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/docker/Dockerfile.monolith
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go build -trimpath -o bin/ ./cmd/generate-keys

FROM alpine:latest

COPY --from=base /build/bin/* /usr/bin
COPY --from=base /build/bin/* /usr/bin/

VOLUME /etc/dendrite
WORKDIR /etc/dendrite
Expand Down
2 changes: 1 addition & 1 deletion build/docker/Dockerfile.polylith
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN go build -trimpath -o bin/ ./cmd/generate-keys

FROM alpine:latest

COPY --from=base /build/bin/* /usr/bin
COPY --from=base /build/bin/* /usr/bin/

VOLUME /etc/dendrite
WORKDIR /etc/dendrite
Expand Down
1 change: 1 addition & 0 deletions build/docker/docker-compose.monolith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- 8448:8448
volumes:
- ./config:/etc/dendrite
- ./media:/var/dendrite/media
networks:
- internal

Expand Down
1 change: 1 addition & 0 deletions build/docker/docker-compose.polylith.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
command: mediaapi
volumes:
- ./config:/etc/dendrite
- ./media:/var/dendrite/media
networks:
- internal

Expand Down

0 comments on commit 41fd15b

Please sign in to comment.