FROM node:20-bullseye

WORKDIR /app

# Copy the application code
COPY . .

RUN yarn && yarn build

# Expose the required port
EXPOSE 3000

# Run the app
CMD ["node", "dist/index.js"]
