Skip to content

Commit

Permalink
feat: remove Dashboard (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
juzhiyuan authored Oct 29, 2020
1 parent 86968b3 commit 733c570
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 733c570

Please sign in to comment.