Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
witchsky.app Dockerfile.bskyogcard
1.2 kB · 42 lines
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243FROM node:20.11-alpine3.18 as build
# Move files into the image and installWORKDIR /app
COPY ./bskyogcard/package.json ./COPY ./bskyogcard/yarn.lock ./RUN yarn install --frozen-lockfile
COPY ./bskyogcard ./
# build then prune dev depsRUN yarn install-fonts && yarn buildRUN yarn install --production --ignore-scripts --prefer-offline
# Uses assets from build stage to reduce build sizeFROM node:20.11-alpine3.18
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=production# potential perf issues w/ io_uring on this version of nodeENV UV_USE_IO_URING=0
# 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/bluesky-social/social-appLABEL org.opencontainers.image.description="Bsky Card Service"LABEL org.opencontainers.image.licenses=UNLICENSED