Dockerfile

master
bel 2019-10-20 13:17:22 -06:00
parent 40b65a4019
commit b1247f8733
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
**.sw*
*.sw*
oauth2server/oauth2server
**/exec-*

16
oauth2server/Dockerfile Normal file
View 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 []