feat: add docker file for static server example

This commit is contained in:
Tim Möhlmann 2023-03-28 16:43:25 +03:00
parent b7d18bfd02
commit c43d0e7295
2 changed files with 23 additions and 3 deletions

15
static-op.Dockerfile Normal file
View 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" ]