Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 dockerscript

cd 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