Skip to content

Instantly share code, notes, and snippets.

@osher
Created May 8, 2023 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osher/e2a378c968527abdef7b26ca7c519221 to your computer and use it in GitHub Desktop.
Save osher/e2a378c968527abdef7b26ca7c519221 to your computer and use it in GitHub Desktop.
An example for a node-runner - a base image for the last step on a multi-phase build for node services
ARG TAG_ALPINE_BASE=latest
FROM alpine:$TAG_ALPINE_BASE
RUN apk update --no-cache \
&& apk upgrade --no-cache \
&& apk add --no-cache nodejs
WORKDIR /app
RUN addgroup -S service \
&& adduser -S service -G service
EXPOSE 3000/tcp
ENTRYPOINT ["node", "index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment