FROM node:14-alpine as builder LABEL maintainer="Stille " WORKDIR / RUN apk add --no-cache git RUN git clone https://github.com/jaywcjlove/linux-command --depth=1 \ && cd linux-command \ && npm install \ && npm build \ && npm run dash FROM nginx:stable-alpine RUN apk add --no-cache ca-certificates COPY --from=builder /linux-command/.deploy /usr/share/nginx/html/ EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]