add ca-certificates for openid

This commit is contained in:
codeskyblue
2018-09-17 21:44:45 +08:00
parent e5bb87aaa1
commit 40f02fba65
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o gohttpserver .
FROM debian:stretch
WORKDIR /app
RUN mkdir -p /app/public
RUN apt-get update && apt-get install -y ca-certificates
VOLUME /app/public
ADD assets ./assets
COPY --from=0 /go/src/github.com/codeskyblue/gohttpserver/gohttpserver .

View File

@@ -64,7 +64,7 @@ go build && ./gohttpserver
## Docker Usage
share current directory
```bash
docker run -it -p 8000:8000 -v $PWD:/app/public --name gohttpserver codeskyblue/gohttpserver
docker run -it --rm -p 8000:8000 -v $PWD:/app/public --name gohttpserver codeskyblue/gohttpserver
```
share current directory with http oauth
```bash