This repository provides a Dockerized development environment for Go, including the official Go image, Vim, and Bash. It's a convenient way to set up a consistent and isolated development environment for your Go projects.
- Docker installed on your machine
-
Clone this repository to your local machine:
git clone https://github.com/rotcivDev/golang-dev.git && cd golang-dev
-
Build the Docker image:
docker compose build
-
Run the Docker container:
docker compose run golang-dev
This command will drop you into a Bash shell inside the container.
-
Your local project directory is mounted into the
/go/src/app
directory inside the container. Any changes made locally will be reflected inside the container, allowing for seamless development. -
Use Vim for editing your Go code, and run your Go commands directly in the container.
If you need additional tools or specific configurations, feel free to modify the Dockerfile and docker-compose.yml according to your requirements.
This project is licensed under the MIT License - see the LICENSE file for details.