forked from tidbyt/pixlet
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from IngmarStein/main
Add a workflow to build Docker images with a static pixlet binary
- Loading branch information
Showing
12 changed files
with
1,281 additions
and
526 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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM golang:latest | ||
FROM alpine:3.21 AS builder | ||
|
||
RUN apt update && apt upgrade && apt install unzip libwebp-dev python3-venv python3-pip -y | ||
RUN apk --no-cache add go npm libwebp-dev libwebp-static git make clang musl-dev | ||
COPY . /pixlet | ||
WORKDIR /pixlet | ||
RUN npm install && npm run build && STATIC=1 make build | ||
|
||
WORKDIR /tmp | ||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs && node -v | ||
FROM scratch | ||
|
||
#uncomment below if you want to compile during build | ||
#RUN git clone https://github.com/tidbyt/pixlet.git | ||
#WORKDIR /tmp/pixlet | ||
#RUN npm install && npm run build && make build | ||
COPY --from=builder /pixlet/pixlet /bin/pixlet | ||
|
||
CMD ["bash"] | ||
ENTRYPOINT ["/bin/pixlet"] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:latest | ||
|
||
RUN apt update && apt upgrade && apt install unzip libwebp-dev python3-venv python3-pip -y | ||
|
||
WORKDIR /tmp | ||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs && node -v | ||
|
||
#uncomment below if you want to compile during build | ||
#RUN git clone https://github.com/tidbyt/pixlet.git | ||
#WORKDIR /tmp/pixlet | ||
#RUN npm install && npm run build && make build | ||
|
||
CMD ["bash"] |
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.