FROM node:20-bullseye
WORKDIR /app
RUN apt-get update && apt-get install -y netcat
# Copy the application code
COPY . .
RUN yarn && yarn build
# Expose the required port
EXPOSE 3000
# Run the app
CMD ["node", "dist/index.js"]