diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 007fc612..d9205d1f 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -1,17 +1,3 @@ -FROM node:10-alpine3.11 AS build-stage - -ARG APISIX_VERSION=1.3 - -RUN set -x \ - && /bin/sed -i 's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' /etc/apk/repositories \ - && apk add --no-cache --virtual .build-deps git \ - && git clone -b ${APISIX_VERSION} https://github.com/apache/apisix.git /tmp/apisix \ - && cd /tmp/apisix \ - && git submodule init \ - && git submodule update \ - && cd dashboard \ - && yarn && yarn build:prod - FROM openresty/openresty:alpine-fat AS production-stage ARG APISIX_VERSION=1.3 @@ -46,8 +32,6 @@ COPY --from=production-stage /usr/local/openresty/ /usr/local/openresty/ COPY --from=production-stage /usr/local/apisix/ /usr/local/apisix/ COPY --from=production-stage /usr/bin/apisix /usr/bin/apisix -COPY --from=build-stage /tmp/apisix/dashboard/dist/ /usr/local/apisix/dashboard/ - ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin EXPOSE 9080 9443