File tree 4 files changed +23
-8
lines changed
4 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,11 @@ WORKDIR /src
17
17
COPY go.mod go.sum /src/
18
18
RUN go mod download -x
19
19
COPY . .
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
22
25
RUN mkdir /empty
23
26
24
27
FROM scratch
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ WORKDIR /src
3
3
COPY go.mod go.sum /src/
4
4
RUN go mod download -x
5
5
COPY . .
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
8
12
RUN mkdir /empty
9
13
10
14
FROM debian:bullseye-slim as bullseye-slim
Original file line number Diff line number Diff line change 1
1
FROM golang:1.18 as build
2
2
WORKDIR /src
3
3
COPY . .
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
6
10
RUN mkdir /empty
7
11
8
12
FROM almalinux:8-minimal as alma
Original file line number Diff line number Diff line change @@ -3,8 +3,12 @@ WORKDIR /src
3
3
COPY go.mod go.sum /src/
4
4
RUN go mod download -x
5
5
COPY . .
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
8
12
RUN mkdir /empty
9
13
10
14
FROM debian:11.7-slim as bullseye-slim
You can’t perform that action at this time.
0 commit comments