-
Notifications
You must be signed in to change notification settings - Fork 282
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 #45 from vincent99/main
Docker UI build
- Loading branch information
Showing
9 changed files
with
32 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
FROM golang:1.22.0-alpine3.19 AS build | ||
RUN apk add -U --no-cache make git npm | ||
FROM node:18-alpine as build-ui | ||
RUN apk add -U --no-cache make git | ||
COPY ui /src | ||
WORKDIR /src | ||
RUN make | ||
|
||
FROM golang:1.22.0-alpine3.19 AS build-go | ||
RUN apk add -U --no-cache make git | ||
COPY . /src/gptscript | ||
COPY --from=build-ui /src/.output/public /src/gptscript/static/ui | ||
WORKDIR /src/gptscript | ||
|
||
RUN make all | ||
RUN make build | ||
|
||
FROM alpine AS release | ||
COPY --from=build /src/gptscript/bin /usr/local/bin/ | ||
WORKDIR /src | ||
COPY --from=build-go /src/gptscript/bin /usr/local/bin/ | ||
COPY --from=build-go /src/gptscript/examples /src/examples | ||
ENTRYPOINT ["/usr/local/bin/gptscript"] |
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,9 +1,6 @@ | ||
build: clean | ||
npm install | ||
npm run generate | ||
rm -rf ../static/ui/_nuxt | ||
cp -rp .output/public/* ../static/ui/ | ||
touch ../static/ui/_nuxt/_placeholder | ||
|
||
clean: | ||
npm run clean |
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
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