Skip to content

Commit 0d712e4

Browse files
committed
Update Dockerfile
1 parent f7a8970 commit 0d712e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ COPY main.go ${GOPATH}/src/github.com/rtcamp/action-slack-notify
1212
ENV CGO_ENABLED 0
1313
ENV GOOS linux
1414

15-
RUN go get -v ./...
16-
RUN go build -a -installsuffix cgo -ldflags '-w -extldflags "-static"' -o /go/bin/slack-notify .
15+
RUN go build -a -installsuffix cgo -ldflags '-w -extldflags "-static"' -o /go/bin/slack-notify main.go
1716

1817
# alpine:latest as of 2024-03-11
1918
FROM alpine@sha256:6457d53fb065d6f250e1504b9bc42d5b6c65941d57532c072d929dd0628977d0
@@ -31,7 +30,7 @@ RUN apk update \
3130
python3 \
3231
py3-pip \
3332
rsync \
34-
&& pip3 install shyaml \
33+
&& python3 -m pip install --break-system-packages shyaml \
3534
&& rm -rf /var/cache/apk/*
3635

3736
# Setup Vault

0 commit comments

Comments
 (0)