Skip to content

Commit

Permalink
fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
unixime committed Dec 2, 2024
1 parent d41fece commit 6368bb0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ COPY internal /go/src/cn-exercise/internal/

WORKDIR /go/src/cn-exercise

RUN go mod tidy

RUN CGO_ENABLED=0 go build -ldflags="-s -w" -a -installsuffix cgo -o /go/bin/server cn-exercise
RUN go mod tidy && \
CGO_ENABLED=0 go build -ldflags="-s -w" -a -installsuffix cgo -o /go/bin/server cn-exercise


FROM scratch


#ENV OPENAM_DEPLOY_URL=${OPENAM_DEPLOY_URL:-"http://openam:8080/openam"}
COPY --from=builder /go/bin/server /app/server

USER 1001
Expand Down

0 comments on commit 6368bb0

Please sign in to comment.