Skip to content

Commit

Permalink
chore: docker image with swagger ui
Browse files Browse the repository at this point in the history
Signed-off-by: Jeronimo Irazabal <[email protected]>
  • Loading branch information
jeroiraz committed Oct 19, 2023
1 parent 221ed66 commit df9f5c4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ WORKDIR /src
COPY go.mod go.sum /src/
RUN go mod download -x
COPY . .
RUN rm -rf /src/webconsole/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default make immuadmin-static immudb-static
RUN make clean
RUN make prerequisites
RUN make swagger
RUN make swagger/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static immuadmin-static
RUN mkdir /empty

FROM scratch
Expand Down
8 changes: 6 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ WORKDIR /src
COPY go.mod go.sum /src/
RUN go mod download -x
COPY . .
RUN rm -rf /src/webconsole/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static
RUN make clean
RUN make prerequisites
RUN make swagger
RUN make swagger/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
RUN GOOS=linux GOARCH=amd64 make immuadmin-static
RUN mkdir /empty

FROM debian:bullseye-slim as bullseye-slim
Expand Down
8 changes: 6 additions & 2 deletions build/Dockerfile.alma
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM golang:1.18 as build
WORKDIR /src
COPY . .
RUN rm -rf /src/webconsole/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static
RUN make clean
RUN make prerequisites
RUN make swagger
RUN make swagger/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
RUN GOOS=linux GOARCH=amd64 make immuadmin-static
RUN mkdir /empty

FROM almalinux:8-minimal as alma
Expand Down
8 changes: 6 additions & 2 deletions build/Dockerfile.full
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ WORKDIR /src
COPY go.mod go.sum /src/
RUN go mod download -x
COPY . .
RUN rm -rf /src/webconsole/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immuadmin-static immudb-static immuclient-static
RUN make clean
RUN make prerequisites
RUN make swagger
RUN make swagger/dist
RUN GOOS=linux GOARCH=amd64 WEBCONSOLE=default SWAGGER=true make immudb-static
RUN GOOS=linux GOARCH=amd64 make immuadmin-static immuclient-static
RUN mkdir /empty

FROM debian:11.7-slim as bullseye-slim
Expand Down

0 comments on commit df9f5c4

Please sign in to comment.