https://github.com/opsway/dockerfile
Extended syntax dockerfile based on Buildkit
https://github.com/opsway/dockerfile
buildkite docker leveldb reindexer snappy
Last synced: about 1 month ago
JSON representation
Extended syntax dockerfile based on Buildkit
- Host: GitHub
- URL: https://github.com/opsway/dockerfile
- Owner: opsway
- License: mit
- Created: 2019-03-27T20:04:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-30T12:03:43.000Z (about 7 years ago)
- Last Synced: 2025-12-26T20:57:49.873Z (5 months ago)
- Topics: buildkite, docker, leveldb, reindexer, snappy
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# dockerfile
Extended syntax `dockerfile` based on `Buildkit`. It's already integrated in `Docker` versions `18.09` and above.
## Usage `draft`
Add `Dockerfile`
```dockerfile
# syntax = opsway/dockerfile
FROM alpine:3.9.2
RUN github.com/opsway/apk/leveldb
RUN github.com/opsway/apk/reindexer
```
Build image
```bash
DOCKER_BUILDKIT=1 docker build .
```
## MWP `concept`
Add `Dockerfile`
```bash
mkdir test; cd $_
bash <(curl -sSL https://raw.githubusercontent.com/opsway/dockerfile/master/dockerfile.sh) \
alpine:3.9.2 \
https://raw.githubusercontent.com/opsway/dockerfile/master/apk/snappy.sh \
https://raw.githubusercontent.com/opsway/dockerfile/master/apk/leveldb.sh \
https://raw.githubusercontent.com/opsway/dockerfile/master/apk/reindexer.sh \
| tee Dockerfile
```
Build image
```bash
docker build --tag opsway/dockerfile-sample .
docker history opsway/dockerfile-sample:latest
```
```text
IMAGE CREATED CREATED BY SIZE COMMENT
2925b51a685c 2 days ago /bin/sh -c set -xe ;apk add --update ;apk ad… 28.9MB
c50637b6191d 2 days ago /bin/sh -c set -xe ;apk add --update ;apk ad… 982kB
5f7ec0512b19 2 days ago /bin/sh -c set -xe ;apk add --update ;apk ad… 806kB
5cb3aa00f899 3 weeks ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0B
3 weeks ago /bin/sh -c #(nop) ADD file:88875982b0512a9d0… 5.53MB
```