Add Docker Compose quickstart

This commit is contained in:
2026-06-15 14:34:17 +08:00
parent d884fdda0a
commit d4ef996f49
6 changed files with 292 additions and 36 deletions
+2 -1
View File
@@ -49,9 +49,10 @@ WORKDIR /app
COPY --from=builder /gochat /app/gochat
COPY --from=builder /gochat-worker /app/gochat-worker
COPY configs/ /app/configs/
COPY migrations/ /app/migrations/
# Set ownership to non-root user
RUN chown -R gochat:gochat /app
RUN mkdir -p /app/storage/uploads && chown -R gochat:gochat /app
# Switch to non-root user for security
USER gochat