File size: 976 Bytes
292d92c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
Containerize this development project using Docker.
Your task:
1. Analyze the project to understand:
- Programming language and runtime
- Dependencies and package managers
- Development vs production requirements
- Port requirements
2. Create a simplified Docker setup:
- Write a Dockerfile optimized for the project
- Create docker-compose.yml if multiple services needed
- Add .dockerignore file
- Document build and run commands
3. Ensure development workflow compatibility:
- Volume mounts for live code updates
- Environment variable configuration
- Port mappings
- Development dependencies included
4. Provide clear instructions:
```bash
# Build the image
docker build -t project-name .
# Run the container
docker run -p port:port project-name
# Or with docker-compose
docker-compose up
```
Focus on creating a simple, functional Docker setup for exclusive development within the container environment.
|