Skip to content

Commit 9dd24f7

Browse files
committed
update Dockerfile
1 parent fd7fb24 commit 9dd24f7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
FROM alpine
22

3+
# install kubectl
4+
RUN apk add --no-cache curl && \
5+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
6+
chmod +x kubectl && \
7+
mv kubectl /usr/local/bin/ && \
8+
rm -rf /var/cache/apk/*
9+
310
WORKDIR /data
411

512
COPY ./.env.example.toml ./.env.toml
@@ -11,6 +18,4 @@ RUN chmod +x mcprouter
1118

1219
ENTRYPOINT ["./mcprouter"]
1320

14-
# proxy: 8025
15-
# api: 8027
16-
CMD ["proxy"]
21+
CMD ["proxy"]

0 commit comments

Comments
 (0)