fixbluesky/Dockerfile
Rose 0e4d363af9
Some checks failed
Semver / semver (push) Failing after 26s
Build Docker Image / build-image (push) Successful in 55s
💚 fix ci builds please
2024-10-16 14:17:09 -05:00

30 lines
512 B
Docker

FROM node:21-alpine AS base
ENV CI=true
FROM base AS builder
RUN corepack enable
WORKDIR /app
COPY .gitignore .gitignore
COPY yarn.lock ./
COPY package.json ./
RUN yarn set version canary
RUN yarn config set nodeLinker node-modules
RUN yarn install --immutable
COPY . .
RUN yarn build
FROM base AS runner
WORKDIR /app
# Don't run production as root
RUN addgroup --system --gid 1001 fixbluesky
RUN adduser --system --uid 1001 fixbluesky
USER fixbluesky
COPY --from=builder /app .
CMD node ./dist/main.js