Skip to content

Commit

Permalink
Add migrate in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hayato24s committed May 4, 2023
1 parent 9e1e262 commit 1306e48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ RUN go build -trimpath -ldflags "-w -s" -o app
# Deploy
FROM debian:bullseye-slim as deploy

RUN apt-get -y update \
&& apt-get -y install curl tar \
&& curl -L https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-amd64.tar.gz | tar xvz \
&& mv ./migrate /usr/local/bin

COPY --from=deploy-builder /app/app .

EXPOSE 50051
Expand Down

0 comments on commit 1306e48

Please sign in to comment.