mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

use entrypoint, so people can specify flags to etcd without providing the binary. Signed-off-by: Secret <haichuang221@163.com>
11 lines
180 B
Plaintext
11 lines
180 B
Plaintext
FROM alpine:latest
|
|
|
|
ADD etcd /usr/local/bin/
|
|
ADD etcdctl /usr/local/bin/
|
|
RUN mkdir -p /var/etcd/
|
|
|
|
EXPOSE 2379 2380
|
|
|
|
# Define default entrypoint.
|
|
ENTRYPOINT ["/usr/local/bin/etcd"]
|