fixbluesky/Dockerfile
Rose 345da2b68e
Some checks failed
Build Docker Image / build-image (push) Failing after 35s
Semver / semver (push) Failing after 33s
💚 maybe now everything works?
2024-10-16 12:56:16 -05:00

29 lines
523 B
Docker

FROM node:21 AS base
FROM base AS builder
RUN apk add --no-cache libc6-compat
RUN apk update
RUN yarn set version canary
RUN yarn config set nodeLinker node-modules
WORKDIR /app
COPY .gitignore .gitignore
COPY package.json ./
COPY yarn.lock ./
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