Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JakeWharton/dockerfile-shebang
Treat your Dockerfiles as self-contained, editable scripts
https://github.com/JakeWharton/dockerfile-shebang
Last synced: 2 days ago
JSON representation
Treat your Dockerfiles as self-contained, editable scripts
- Host: GitHub
- URL: https://github.com/JakeWharton/dockerfile-shebang
- Owner: JakeWharton
- License: apache-2.0
- Created: 2020-11-30T21:49:04.000Z (almost 4 years ago)
- Default Branch: trunk
- Last Pushed: 2020-12-03T05:40:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-27T12:26:03.103Z (15 days ago)
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 94
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Dockerfile Shebang
Treat your Dockerfiles as self-contained, editable scripts.
```
$ cat test.dockerfile
#!/usr/bin/env dockerfile-shebangFROM alpine:latest
ENTRYPOINT ["echo"]$ chmod +x test.dockerfile
$ ./test.dockerfile Hello, world!
Hello, world!
```If you need to pass arguments to the underlying `docker run` command, put them before a `--` argument.
```
$ ./test.dockerfile --expose 80 -- Hello, world!
```## Install
**Mac OS**
```
$ brew install JakeWharton/repo/dockerfile-shebang
```**Other**
Download `dockerfile-shebang` script from
[latest release](https://github.com/JakeWharton/dockerfile-shebang/releases/latest).
Run `chmod +x dockerfile-shebang` and drop into a folder which is on your `$PATH`.Want to maintain a Linux distro installation? Please do! PRs for distro installation welcome.
# License
Copyright 2020 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.