Skip to content

Commit

Permalink
Merge pull request #13 from dzniel/dev
Browse files Browse the repository at this point in the history
Push changes
  • Loading branch information
dzniel committed Aug 6, 2023
2 parents b86682b + 3fa8722 commit 5298a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ RUN curl -L https://github.com/golang-migrate/migrate/releases/download/v4.16.2/
FROM alpine:3.18
WORKDIR /app
COPY --from=builder /app/main .
COPY --from=builder /app/migrate.linux-amd64 ./migrate
COPY --from=builder /app/migrate ./migrate
COPY app.env .
COPY start.sh .
COPY wait-for.sh .
COPY db/migration ./migration
RUN chmod +x ./start.sh
RUN chmod +x ./wait-for.sh
RUN chmod +x start.sh
RUN chmod +x wait-for.sh

EXPOSE 8080
CMD [ "/app/main" ]
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ services:
- "8080:8080"
environment:
- DB_SOURCE=postgresql://root:secret@postgres:5432/simple_bank?sslmode=disable
depends_on:
- postgres
entrypoint: [ "/app/wait-for.sh", "postgres:5432", "--", "/app/start.sh" ]
command: [ "/app/main" ]

0 comments on commit 5298a3b

Please sign in to comment.