See https://cloud.docker.com/repository/docker/alexstep/zeitpkg-runner
Small image for run nodejs packages builded for target nodejs10-alpine-x64 by zeit pkg
Dockerfile
# FROM node:10-alpine as builder
FROM alexstep/zeitpkg-builder as builder
COPY ./ /app
WORKDIR /app
RUN npm i --production
# RUN npx pkg -t node10-alpine-x64 ./server/index.js --output /app/bin
RUN pkg -t node10-alpine-x64 ./server/index.js --output /app/bin
# FROM node:10-alpine
# FROM alpine:3.5
# RUN apk update && apk add --no-cache libstdc++ libgcc
FROM alexstep/zeitpkg-runner
COPY --from=builder /app/bin /upload-proxy
ENTRYPOINT [ "/upload-proxy" ]
results image has very small size
docker pull alexstep/zeitpkg-runner:latest