File tree Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Expand file tree Collapse file tree 4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,11 @@ WORKDIR /src
1717COPY go.mod go.sum /src/
1818RUN go mod download -x
1919COPY . .
20- RUN rm -rf /src/webconsole/dist
21- RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default make immuadmin-static immudb-static
20+ RUN make clean
21+ RUN make prerequisites
22+ RUN make swagger
23+ RUN make swagger/dist
24+ RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static immuadmin-static
2225RUN mkdir /empty
2326
2427FROM scratch
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ WORKDIR /src
33COPY go.mod go.sum /src/
44RUN go mod download -x
55COPY . .
6- RUN rm -rf /src/webconsole/dist
7- RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static
6+ RUN make clean
7+ RUN make prerequisites
8+ RUN make swagger
9+ RUN make swagger/dist
10+ RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
11+ RUN GOOS=linux GOARCH=amd64 make immuadmin-static
812RUN mkdir /empty
913
1014FROM debian:bullseye-slim as bullseye-slim
Original file line number Diff line number Diff line change 11FROM golang:1.18 as build
22WORKDIR /src
33COPY . .
4- RUN rm -rf /src/webconsole/dist
5- RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static
4+ RUN make clean
5+ RUN make prerequisites
6+ RUN make swagger
7+ RUN make swagger/dist
8+ RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
9+ RUN GOOS=linux GOARCH=amd64 make immuadmin-static
610RUN mkdir /empty
711
812FROM almalinux:8-minimal as alma
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ WORKDIR /src
33COPY go.mod go.sum /src/
44RUN go mod download -x
55COPY . .
6- RUN rm -rf /src/webconsole/dist
7- RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static immuclient-static
6+ RUN make clean
7+ RUN make prerequisites
8+ RUN make swagger
9+ RUN make swagger/dist
10+ RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
11+ RUN GOOS=linux GOARCH=amd64 make immuadmin-static immuclient-static
812RUN mkdir /empty
913
1014FROM debian:11.7-slim as bullseye-slim
You can’t perform that action at this time.
0 commit comments