Skip to content

Commit

Permalink
Merge pull request #180 from minitech/docker-dev-cache-optimization
Browse files Browse the repository at this point in the history
chore: improve cache use in dev Docker setup
  • Loading branch information
mattrltrent authored Mar 6, 2024
2 parents ea1d00a + c7bea65 commit b4e8f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

FROM golang:1.20-alpine
WORKDIR /confesi
COPY . .
RUN go install github.com/cosmtrek/air@latest
RUN go install github.com/cosmtrek/[email protected]
EXPOSE 8080
CMD ["air"]
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:
- redis
volumes:
- .:/confesi
- gohome:/go
environment:
PORT:
POSTGRES_DSN:
Expand All @@ -37,6 +38,7 @@ services:
AWS_SECRET_ACCESS_KEY:
AWS_REGION:
MASK_SECRET:
GOCACHE: /go/cache

redis:
image: redis:alpine
Expand All @@ -47,5 +49,6 @@ services:
- '6379:6379'

volumes:
gohome:
redis-data:
driver: local

0 comments on commit b4e8f52

Please sign in to comment.