ARG NODE_VERSION=22.11.0
# Create build stage
FROM node:${NODE_VERSION}-slim AS build
# Set the working directory inside the container
WORKDIR /app
# Installing dependencies
COPY yarn.lock package.json ./
RUN yarn install
# Copying remaining contents
COPY . .
EXPOSE 3000
#CMD ["yarn", "build", "--host", "0.0.0.0"]
RUN yarn build
CMD ["node", ".output/server/index.mjs"]
ARG NODE_VERSION=22.11.0
# Create build stage
FROM node:${NODE_VERSION}-slim AS build
# Set the working directory inside the container
WORKDIR /app
# Installing dependencies
COPY yarn.lock package.json ./
RUN yarn install
# Copying remaining contents
COPY . .
EXPOSE 3000
#CMD ["yarn", "build", "--host", "0.0.0.0"]
RUN yarn build
CMD ["node", ".output/server/index.mjs"]