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

Commit

Permalink
fixed folder permission errors on hydroxide root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-04 authored Oct 11, 2023
1 parent 77f6881 commit 0cbc321
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ENV GOPATH /go
# build hydroxide
RUN git -C ./src/ clone https://github.com/emersion/hydroxide/
RUN cd /go/src/hydroxide/cmd/hydroxide && go build . && go install . && cd
RUN mkdir /hydroxide

# container OS
FROM alpine:3
Expand All @@ -28,14 +29,14 @@ RUN apk --update upgrade \
&& rm -rf /var/cache/apk/*

RUN addgroup -S hydroxide && adduser -S hydroxide -G hydroxide
USER hydroxide

RUN mkdir /hydroxide && chown -R hydroxide:hydroxide /hydroxide

# copy hydroxide
COPY --chown=hydroxide:hydroxide --from=builder /go/bin/hydroxide /usr/bin/hydroxide

WORKDIR /hydroxide
# using copy instead of volume to avoid permission issues
COPY --chown=hydroxide:hydroxide --from=builder /hydroxide /hydroxide

USER hydroxide
WORKDIR /hydroxide

ENTRYPOINT ["hydroxide", "-debug", "-smtp-host", "0.0.0.0", "-imap-host", "0.0.0.0", "-carddav-host", "0.0.0.0"]

0 comments on commit 0cbc321

Please sign in to comment.