File tree Expand file tree Collapse file tree 6 files changed +12
-5
lines changed
Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 3232 - name : Build and push the docker image
3333 uses : docker/build-push-action@v3
3434 with :
35- platforms : linux/amd64,linux/arm64,linux/arm/v7
35+ platforms : linux/amd64,linux/arm64
3636 push : true
3737 tags : |
3838 timothyye/godns:latest
Original file line number Diff line number Diff line change 2323 name : Build the frontend project
2424 run : |
2525 cd web
26- npm install
26+ npm ci
2727 npm run build
2828 cd ..
2929 go generate ./...
Original file line number Diff line number Diff line change 33before :
44 hooks :
55 # build the frontend project
6- - npm install --prefix ./web
6+ - npm ci --prefix ./web
77 - npm run build --prefix ./web
88 # You may remove this if you don't use go modules.
99 - go mod tidy
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /web
44# Copy the Next.js project files into the image
55COPY ./web/package.json ./web/package-lock.json ./
66# Install dependencies
7- RUN npm install
7+ RUN npm ci
88# Copy the rest of the Next.js project files
99COPY ./web .
1010# Build the Next.js project
Original file line number Diff line number Diff line change 22BINARY =godns
33# Builds the project
44build :
5+ npm ci --prefix ./web
6+ npm run build --prefix ./web
7+ go generate ./...
58 GO111MODULE=on go build -ldflags " -X main.Version=${VERSION} " -o ${BINARY} cmd/godns/godns.go
69# Installs our project: copies binaries
710install :
Original file line number Diff line number Diff line change @@ -1195,11 +1195,15 @@ Contributions are welcome! Please feel free to submit a Pull Request.
11951195
11961196### Setup the frontend development environment
11971197
1198+ Requirements:
1199+ * Node.js ` 18.19.0 ` or higher
1200+ * Go ` 1.17 ` or higher
1201+
11981202The frontend project is built with [ Next.js] ( https://nextjs.org/ ) and [ daisyUI] ( https://daisyui.com/ ) . To start the development environment, run:
11991203
12001204``` bash
12011205cd web
1202- npm install
1206+ npm ci
12031207npm run dev
12041208```
12051209### Build the frontend
You can’t perform that action at this time.
0 commit comments