https://github.com/jojoarianto/golang-docker
learn golang with docker
https://github.com/jojoarianto/golang-docker
docker docker-compose
Last synced: about 2 months ago
JSON representation
learn golang with docker
- Host: GitHub
- URL: https://github.com/jojoarianto/golang-docker
- Owner: jojoarianto
- Created: 2019-09-01T06:05:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T21:02:57.000Z (almost 7 years ago)
- Last Synced: 2024-04-24T10:13:51.714Z (about 2 years ago)
- Topics: docker, docker-compose
- Language: Dockerfile
- Size: 3.45 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang-docker
- create your app
- create dockerfile
- build docker image with
```bash
# simple script
docker build -t your-image-name-you-want .
# another script you can run
docker build --rm -f "Dockerfile" -t your-image-name-you-want:latest .
```
- run docker image
```bash
docker run -p 8080:8080 your-image-name
```
- [opsional] create your docker-compose file
- [opsional] build docker-compose into images
```bash
# this will build the images
docker-compose build
```
- [opsional] run container
```bash
docker-compose up
```