Skip to content

Commit

Permalink
feat: update deploy script and add cert
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo0515 committed Feb 18, 2024
1 parent 76b1171 commit 230f680
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ WORKDIR /build
COPY . .
RUN buf generate idl/proto

FROM alpine:latest as certs
RUN apk --update add ca-certificates

FROM golang:1.21-alpine AS builder

ENV GO111MODULE=on \
Expand All @@ -18,5 +21,6 @@ RUN go build -o main .

FROM scratch
WORKDIR /app
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /build/main /build/.env /app/
ENTRYPOINT ["./main"]
4 changes: 2 additions & 2 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
git pull origin main
git submodule update --recursive

# Remove unused docker images
docker image prune -af
# Remove unused docker images & build cache
docker system prune

# Build and run the docker containers
docker compose build
Expand Down
2 changes: 1 addition & 1 deletion idl
Submodule idl updated from 4853ac to 4a1a9c

0 comments on commit 230f680

Please sign in to comment.