-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(imgs): use imgproxy instead of libwebp (#56)
--------- Co-authored-by: Antonio Mika <[email protected]>
- Loading branch information
1 parent
3f6a880
commit f1e1fbb
Showing
29 changed files
with
277 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,8 @@ LABEL maintainer="Pico Maintainers <[email protected]>" | |
|
||
WORKDIR /app | ||
|
||
RUN dpkg --add-architecture arm64 && dpkg --add-architecture amd64 | ||
RUN apt-get update | ||
RUN apt-get install -y git ca-certificates \ | ||
libwebp-dev:amd64 libwebp-dev:arm64 \ | ||
crossbuild-essential-amd64 crossbuild-essential-arm64 \ | ||
libc-dev:amd64 libc-dev:arm64 | ||
RUN apt-get install -y git ca-certificates | ||
|
||
COPY go.* ./ | ||
|
||
|
@@ -22,17 +18,16 @@ ARG APP=lists | |
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
ENV CGO_ENABLED=1 | ||
ENV LDFLAGS="-s -w -linkmode external -extldflags '-static -lm -pthread'" | ||
ENV CC=/app/scripts/gccwrap.sh | ||
ENV CGO_ENABLED=0 | ||
ENV LDFLAGS="-s -w" | ||
|
||
ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH} | ||
|
||
RUN go build -ldflags "$LDFLAGS" -tags "netgo osusergo" -o /go/bin/${APP}-web ./cmd/${APP}/web | ||
RUN go build -ldflags "$LDFLAGS" -o /go/bin/${APP}-web ./cmd/${APP}/web | ||
|
||
FROM builder-web as builder-ssh | ||
|
||
RUN go build -ldflags "$LDFLAGS" -tags "netgo osusergo" -o /go/bin/${APP}-ssh ./cmd/${APP}/ssh | ||
RUN go build -ldflags "$LDFLAGS" -o /go/bin/${APP}-ssh ./cmd/${APP}/ssh | ||
|
||
FROM scratch as release-web | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.