oidc-auth-armada-app/stx-oidc-client/centos/docker/Dockerfile
Teresa Ho 70147e64e9 Fix container build issue with stx-oidc-client
The go-oidc package was upversioned and the import path was changed.
The locked version of the package was no longer retrievable.

After migrating to use Go Modules, the proper version of the packages
can be downloaded.

Partial-Bug: 1911244

Change-Id: I4cc7e56bf947da6b7b4151ff8bee739090c22c51
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2021-01-15 12:01:08 -05:00

9 lines
137 B
Docker

FROM golang:latest
WORKDIR /app
ADD . /app/
RUN go mod download
RUN go build -o stx-oidc-client .
EXPOSE 5555
CMD ["./stx-oidc-client"]