dockerfiles/linux-command/Dockerfile

20 lines
454 B
Docker
Raw Normal View History

2023-12-11 13:04:56 +08:00
FROM node:alpine3.18 as builder
2022-08-29 13:07:03 +08:00
LABEL maintainer="Stille <stille@ioiox.com>"
WORKDIR /
RUN apk add --no-cache git
RUN git clone https://github.com/jaywcjlove/linux-command --depth=1 \
&& cd linux-command \
&& npm install \
2023-12-11 13:04:56 +08:00
&& npm run build \
2022-08-29 13:07:03 +08:00
&& 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;"]