Files
no-twitter-bot-stats/Dockerfile
Lucid c4316f0425
Some checks are pending
Main / build-and-push-docker-image (20.x) (push) Waiting to run
no more copy, I guess?
2025-12-05 20:18:06 -05:00

17 lines
347 B
Docker

FROM node:lts-alpine AS base
# Stage 1: Install dependencies
FROM base AS deps
WORKDIR /app
COPY package.json yarn.lock ./
RUN corepack enable yarn && yarn install --immutable
# Stage 2: Build the application
COPY . .
RUN corepack enable yarn && yarn build
# Stage 3: Production server
ENV NODE_ENV=production
EXPOSE 3000
CMD ["yarn", "start"]