Sign inSign up

faasjs/nginx

By faasjs

•Updated about 1 month ago

A Nginx Image for FaasJS projects

Image
1

10K+

faasjs/nginx repository overview

⁠A Nginx Image for FaasJS projects

faasjs/nginx Build Status Image size

⁠Features

  • Base on alpine with tiny image size.
  • Support brotli compression.
  • Output log to stdout.

⁠Usage

FROM faasjs/node AS builder

WORKDIR /app
COPY package.json package.json
COPY package-lock.json package-lock.json
RUN npm install

COPY . .

RUN npm run build

FROM faasjs/nginx

COPY --from=builder /app/dist /usr/share/nginx/html

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]

Tag summary

Content type

Image

Digest

sha256:e27f1b004…

Size

4.9 MB

Last updated

about 1 month ago

docker pull faasjs/nginx