update name, project refference and synchronization

This commit is contained in:
ghostersk
2026-03-08 06:06:38 +00:00
parent 5d51b9778b
commit b29949e042
27 changed files with 587 additions and 137 deletions
+7 -7
View File
@@ -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"]