Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
blacksky.community Dockerfile.bskyogcard
1.4 kB · 46 lines
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647FROM node:24.22.1-alpine3.23 AS build
# Tells pnpm to run non-interactively (needed for install/script steps)ENV CI=true
# Move files into the image and installWORKDIR /app
COPY ./bskyogcard/package.json ./COPY ./bskyogcard/pnpm-lock.yaml ./COPY ./bskyogcard/pnpm-workspace.yaml ./RUN npm install --global pnpm@11.28.5RUN pnpm install --frozen-lockfile
COPY ./bskyogcard ./
# build then prune dev depsRUN pnpm install-fonts && pnpm buildRUN pnpm install --prod --ignore-scripts --prefer-offline
# Uses assets from build stage to reduce build sizeFROM node:24.22.1-alpine3.23
RUN apk add --update dumb-init
# Avoid zombie processes, handle signal forwardingENTRYPOINT ["dumb-init", "--"]
WORKDIR /appCOPY --from=build /app /appRUN mkdir /app/data && chown node /app/data
VOLUME /app/dataEXPOSE 3000 3001ENV CARD_PORT=3000ENV CARD_METRICS_PORT=3001ENV NODE_ENV=productionENV NODE_OPTIONS="--import=@atproto-labs/fetch-node/emudhra-preload"
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#non-root-userUSER nodeCMD ["node", "--heapsnapshot-signal=SIGUSR2", "--enable-source-maps", "dist/bin.js"]
LABEL org.opencontainers.image.source=https://github.com/blacksky-algorithms/blacksky.community/LABEL org.opencontainers.image.description="Blacksky Card Service"LABEL org.opencontainers.image.licenses=UNLICENSED