Skip to content

Commit cc549f1

Browse files
修复arm64镜像build失败的问题
1 parent b15ff65 commit cc549f1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:14-alpine as stage-web-build
1+
FROM node:14.18.1 as stage-web-build
22

33
LABEL stage=stage-web-build
44

5-
RUN apk add make python gcc g++
5+
RUN apt-get install -y make python gcc g++
66

77
WORKDIR /build/kubepi/web
88

@@ -12,7 +12,6 @@ RUN make build_web
1212

1313
RUN rm -fr web
1414

15-
1615
FROM golang:1.16 as stage-bin-build
1716

1817
ENV GOPROXY="https://goproxy.cn,direct"
@@ -27,7 +26,6 @@ WORKDIR /build/kubepi/bin
2726

2827
COPY --from=stage-web-build /build/kubepi/web .
2928

30-
3129
RUN go mod download
3230

3331
RUN make build_gotty
@@ -56,7 +54,6 @@ RUN ARCH=$(uname -m) && case $ARCH in aarch64) ARCH="arm64";; x86_64) ARCH="amd6
5654

5755
COPY vimrc.local /etc/vim
5856

59-
6057
EXPOSE 80
6158

6259
USER root

0 commit comments

Comments
 (0)