FROM node:19-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
ENV NODE_ENV production
EXPOSE 8080
CMD ["node", "server.js"]