mirror of
https://github.com/LukeHagar/slinky.git
synced 2025-12-06 04:21:20 +00:00
Refactor Dockerfile to remove unnecessary user creation and streamline image build process by directly installing dependencies.
This commit is contained in:
@@ -7,12 +7,10 @@ COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /usr/local/bin/slinky ./
|
||||
|
||||
FROM alpine:3.20
|
||||
RUN adduser -D -u 10001 appuser \
|
||||
&& apk add --no-cache curl jq ca-certificates
|
||||
RUN apk add --no-cache curl jq ca-certificates
|
||||
COPY --from=build /usr/local/bin/slinky /usr/local/bin/slinky
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
USER appuser
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user