A Nginx Image for FaasJS projects

faasjs/nginxopen in new windowBuild Statusopen in new windowImage sizeopen in new window

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;"]