Dockerfile
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
**.sw*
|
||||
*.sw*
|
||||
oauth2server/oauth2server
|
||||
**/exec-*
|
||||
|
||||
16
oauth2server/Dockerfile
Normal file
16
oauth2server/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
FROM golang:1.13-alpine as certs
|
||||
RUN apk update && apk add --no-cache ca-certificates
|
||||
|
||||
FROM busybox:glibc
|
||||
RUN mkdir -p /var/log
|
||||
WORKDIR /main
|
||||
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV GOPATH=""
|
||||
ENV MNT="/mnt/"
|
||||
ENTRYPOINT ["/main/exec-oauth2server"]
|
||||
CMD []
|
||||
|
||||
Reference in New Issue
Block a user