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
|
||||
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user