Dockerfile 454 B

12345678910111213141516171819
  1. FROM node:alpine3.18 as builder
  2. LABEL maintainer="Stille <[email protected]>"
  3. WORKDIR /
  4. RUN apk add --no-cache git
  5. RUN git clone https://github.com/jaywcjlove/linux-command --depth=1 \
  6. && cd linux-command \
  7. && npm install \
  8. && npm run build \
  9. && npm run dash
  10. FROM nginx:stable-alpine
  11. RUN apk add --no-cache ca-certificates
  12. COPY --from=builder /linux-command/.deploy /usr/share/nginx/html/
  13. EXPOSE 80
  14. CMD ["nginx", "-g", "daemon off;"]