mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-07-07 15:11:20 +08:00
chore: simplify Dockerfile by removing unnecessary user and permission setup
This commit is contained in:
@@ -8,17 +8,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/krau/SaveAny
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN addgroup -S saveany && adduser -S saveany -G saveany
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/saveany-bot .
|
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"]
|
ENTRYPOINT ["/app/saveany-bot"]
|
||||||
|
|||||||
Reference in New Issue
Block a user