Sign inSign up

lufuhu/node-serve

By lufuhu

Updated about 4 years ago

Node + Serve,Static file serving and directory listing.

Image
0

87

lufuhu/node-serve repository overview

Node + Serve ,Static file serving and directory listing.

https://github.com/vercel/serve

Build

  • Dockerfile
FROM node:16.16.0-alpine
RUN npm install --location=global serve
  • build
docker build -t lufuhu/node-serve:16.16.0-alpine .
  • push
docker push lufuhu/node-serve:16.16.0-alpine

Use

FROM lufuhu/node-serve:16.16.0-alpine
COPY /dist /web
WORKDIR /web
CMD ["npx", "serve -p 3001 --no-clipboard"]

Tag summary

Content type

Image

Digest

sha256:8468091e1

Size

42.5 MB

Last updated

about 4 years ago

docker pull lufuhu/node-serve:16.16.0-alpine