FROM node:22-bullseye

WORKDIR /opt/backend

COPY backend .
COPY .env .
RUN npm i

EXPOSE 3000
CMD ["npm", "run", "start"]