mirror of
https://github.com/ghostersk/gowebmail.git
synced 2026-06-19 08:40:41 +01:00
update name, project refference and synchronization
This commit is contained in:
+7
-7
@@ -7,24 +7,24 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -o gomail ./cmd/server
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -o gowebmail ./cmd/server
|
||||
|
||||
# ---- Runtime ----
|
||||
FROM alpine:3.19
|
||||
RUN apk add --no-cache sqlite-libs ca-certificates tzdata
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/gomail .
|
||||
COPY --from=builder /app/gowebmail .
|
||||
COPY --from=builder /app/web ./web
|
||||
|
||||
RUN mkdir -p /data && addgroup -S gomail && adduser -S gomail -G gomail
|
||||
RUN chown -R gomail:gomail /app /data
|
||||
USER gomail
|
||||
RUN mkdir -p /data && addgroup -S gowebmail && adduser -S gowebmail -G gowebmail
|
||||
RUN chown -R gowebmail:gowebmail /app /data
|
||||
USER gowebmail
|
||||
|
||||
VOLUME ["/data"]
|
||||
EXPOSE 8080
|
||||
|
||||
ENV DB_PATH=/data/gomail.db
|
||||
ENV DB_PATH=/data/gowebmail.db
|
||||
ENV LISTEN_ADDR=:8080
|
||||
|
||||
CMD ["./gomail"]
|
||||
CMD ["./gowebmail"]
|
||||
|
||||
Reference in New Issue
Block a user