Skip to content

Instantly share code, notes, and snippets.

@wesleywillians
Created March 29, 2021 13:27
Show Gist options
  • Save wesleywillians/73b275126b8d1562e32d7c3ac129784a to your computer and use it in GitHub Desktop.
Save wesleywillians/73b275126b8d1562e32d7c3ac129784a to your computer and use it in GitHub Desktop.
Arquitetura Hexagonal Golang - Dockerfile e docker-compose.yaml
version: "3"
services:
app:
build: .
container_name: appproduct
ports:
- "9000:9000"
volumes:
- .:/go/src/
FROM golang:1.16
WORKDIR /go/src
ENV PATH="/go/bin:${PATH}"
RUN go install github.com/spf13/cobra/cobra@latest && \
go install github.com/golang/mock/mockgen@v1.5.0
CMD ["tail", "-f", "/dev/null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment