Skip to content

Commit df9f5c4

Browse files
committed
chore: docker image with swagger ui
Signed-off-by: Jeronimo Irazabal <[email protected]>
1 parent 221ed66 commit df9f5c4

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ WORKDIR /src
1717
COPY go.mod go.sum /src/
1818
RUN go mod download -x
1919
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
2225
RUN mkdir /empty
2326

2427
FROM scratch

build/Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ WORKDIR /src
33
COPY go.mod go.sum /src/
44
RUN go mod download -x
55
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
812
RUN mkdir /empty
913

1014
FROM debian:bullseye-slim as bullseye-slim

build/Dockerfile.alma

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
FROM golang:1.18 as build
22
WORKDIR /src
33
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
610
RUN mkdir /empty
711

812
FROM almalinux:8-minimal as alma

build/Dockerfile.full

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ WORKDIR /src
33
COPY go.mod go.sum /src/
44
RUN go mod download -x
55
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
812
RUN mkdir /empty
913

1014
FROM debian:11.7-slim as bullseye-slim

0 commit comments

Comments
 (0)