Skip to content

Commit

Permalink
CA certificates 추가 (#16)
Browse files Browse the repository at this point in the history
* fix: CA certificates 추가

* fix: 패키지 매니저 변경

* add: 무조건 업그레이드 되도록 수정

* fix apt-get에 맞는 옵션 설정
  • Loading branch information
parkgang committed Nov 12, 2021
1 parent ca73f1e commit 2d9afa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64

# [x509: certificate signed by unknown authority를 해결하기 위해서 CA certificates 추가](https://velog.io/@byron1st/x.509-certificate-signed-by-unknown-authority)
RUN apt-get update && apt-get -y upgrade && apt-get install ca-certificates

WORKDIR /build
COPY ./go.mod ./
COPY ./go.sum ./
Expand All @@ -25,6 +28,7 @@ ENV GO_ENV=production

COPY --from=golang-builder /dist/main ./
COPY --from=golang-builder /dist/config.prod.json ./configs/config.prod.json
COPY --from=golang-builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

EXPOSE 8080

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package project

const (
AppName string = "oauth-server"
AppVersion string = "0.2.1"
AppVersion string = "0.2.2"
)

0 comments on commit 2d9afa6

Please sign in to comment.