HUB
Sign inSign up

alexstep/zeitpkg-runner

By alexstep

•Updated almost 8 years ago

Image
0

537

alexstep/zeitpkg-runner repository overview

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

⁠Example of usage

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

Tag summary
Recent tags
Content type
Image
Digest
Size
3.3 MB
Last updated
almost 8 years ago
docker pull alexstep/zeitpkg-runner:latest