Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codenoid/docker-script
Embed your whole project files into single existing Dockerfile file with respect to .dockerignore & GZIP compression support.
https://github.com/codenoid/docker-script
docker dockerfile
Last synced: 2 days ago
JSON representation
Embed your whole project files into single existing Dockerfile file with respect to .dockerignore & GZIP compression support.
- Host: GitHub
- URL: https://github.com/codenoid/docker-script
- Owner: codenoid
- Created: 2024-01-14T17:04:11.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-18T07:05:15.000Z (10 months ago)
- Last Synced: 2024-10-03T06:20:48.769Z (about 1 month ago)
- Topics: docker, dockerfile
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DockerScript
![production ready](https://img.shields.io/badge/Project%20Stage-Production%20Ready-brightgreen.svg)
Embed your project files into single existing Dockerfile file with respect to .dockerignore & GZIP compression support
Inspired by @adtac's [Gist](https://gist.github.com/adtac/595b5823ef73b329167b815757bbce9f)
## Features
- [x] .dockerignore support
- [x] GZIP Compression Support (~80% Smaller!!!)## How to run
Install [Go](https://dev.to/codenoid_/easiest-way-to-install-go-on-linux-gim) to follow the step below
```sh
go install github.com/codenoid/docker-script@latest # install dockerscriptcd your-project-which-contains-dockerfile
# generates Dockerfile.script which will contains all of your project files
docker-script -path .# run the generated Dockerfile
./Dockerfile.script
```## Is this ready for production?
yeah yeah, it's ready, but you may need to test your Dockerfile.script first, you may want to change something