Add Docker Compose quickstart
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user