Preparing the dev environment
Dockerfile
FROM golang:1.21.3
WORKDIR /app
compose.yml
version: '3'
services:
app:
build: .
tty: true
volumes:
- ./src:/app
Makefile
.PHONY: up down shell
down:
docker compose down --rmi local --volumes --remove-orphans
up:
docker compose up $(filter-out $@,$(MAKECMDGOALS))
shell:
docker compose exec app bash
%:
@:
Top comments (0)