chore: simplify Dockerfile by removing unnecessary user and permission setup

This commit is contained in:
krau
2025-05-19 21:43:47 +08:00
parent a474fdf6ae
commit b017046c8b

View File

@@ -8,17 +8,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/krau/SaveAny
FROM alpine:latest
RUN addgroup -S saveany && adduser -S saveany -G saveany
WORKDIR /app
COPY --from=builder /app/saveany-bot .
RUN mkdir -p /app/data /app/downloads /app/cache && \
chown -R saveany:saveany /app /app/downloads /app/cache /app/data
RUN chmod +x /app/saveany-bot
USER saveany
ENTRYPOINT ["/app/saveany-bot"]