Skip to content

Commit

Permalink
no needs strip dependency_resolve bin
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Jul 26, 2024
1 parent b948efc commit fed2d62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ FROM --platform="${PLATFORM}" ${GOLANG} AS golang

COPY "./" "/build"

RUN apt-get update && apt-get install -y "binutils" \
&& cd "/build" \
RUN cd "/build" \
&& go get \
&& go build -o "/usr/local/bin/dependency_resolve" . \
&& strip --strip-all "/usr/local/bin/dependency_resolve" \
&& cd -

FROM --platform="${PLATFORM}" ${BUSYBOX} AS busybox
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ FROM debian:12 AS builder
FROM --platform="${PLATFORM}" ${GOLANG} AS golang
COPY "./" "/build"
RUN cd "/build" \
&& go get \
&& go build -o "/usr/local/bin/dependency_resolve" . \
&& strip --strip-all "/usr/local/bin/dependency_resolve"
&& cd -
COPY --from=golang "/usr/local/bin/dependency_resolve" "/usr/local/bin/dependency_resolve"
RUN apt-get update && apt-get install -y "binutils" "php"
Expand Down

0 comments on commit fed2d62

Please sign in to comment.