Skip to content

Instantly share code, notes, and snippets.

@lynsei
Created August 29, 2022 01:15
Show Gist options
  • Save lynsei/f6ae9e7ede9b3e89714cc1a9fc23c37e to your computer and use it in GitHub Desktop.
Save lynsei/f6ae9e7ede9b3e89714cc1a9fc23c37e to your computer and use it in GitHub Desktop.
[distroless nodejs apps] #Docker #Image for #NodeJS #Apps #Containers using a tiny NodeJS base image
# my new registry code will be stored at github.com/distro-less and will provide polyglot support
FROM node:8.15.0 AS build-env
ADD . /app
WORKDIR /app
FROM gcr.io/distroless/nodejs
COPY --from=build-env /app /app
WORKDIR /app
CMD ["js_file.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment