Skip to content

Commit

Permalink
refactor: etcd Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sandwich demo committed May 28, 2024
1 parent 1d91029 commit 494e79d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM bitnami/etcd:3.5.13

COPY etcd /opt/bitnami/etcd/bin/etcd
#RUN chmod +x /opt/bitnami/etcd/bin/etcd
COPY etcdctl /opt/bitnami/etcd/bin/etcdctl
#RUN chmod +x /opt/bitnami/etcd/bin/etcdctl

# 设置默认环境变量
ENV ALLOW_NONE_AUTHENTICATION=yes

EXPOSE 2379 2380

WORKDIR /opt/bitnami/etcd
USER 1001
ENTRYPOINT [ "/opt/bitnami/scripts/etcd/entrypoint.sh" ]
CMD [ "/opt/bitnami/scripts/etcd/run.sh" ]

0 comments on commit 494e79d

Please sign in to comment.