mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1433 from philips/add-build-docker-script
scripts: build-docker
This commit is contained in:
commit
52350d1d2f
12
scripts/build-docker
Executable file
12
scripts/build-docker
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/bash
|
||||
tar cv --files-from /dev/null | docker import - scratch
|
||||
|
||||
cat <<DF > Dockerfile
|
||||
FROM scratch
|
||||
ADD etcd /
|
||||
ADD etcdctl /
|
||||
EXPOSE 4001 7001 2379 2380
|
||||
CMD ["/etcd"]
|
||||
DF
|
||||
|
||||
docker build .
|
Loading…
x
Reference in New Issue
Block a user