feat: add docker file for static server example
This commit is contained in:
parent
b7d18bfd02
commit
c43d0e7295
2 changed files with 23 additions and 3 deletions
15
static-op.Dockerfile
Normal file
15
static-op.Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM golang:latest as build
|
||||
|
||||
COPY go.mod go.sum /build/
|
||||
WORKDIR /build
|
||||
RUN go mod download -x
|
||||
|
||||
COPY . /build/
|
||||
RUN go build ./example/server
|
||||
|
||||
FROM busybox:glibc
|
||||
COPY --from=build /build/server /usr/local/bin/server
|
||||
|
||||
ENV ISSUER=http://localhost:9998/
|
||||
EXPOSE 9998
|
||||
CMD [ "/usr/local/bin/server" ]
|
Loading…
Add table
Add a link
Reference in a new issue