Created
May 8, 2023 11:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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