FROM node:20-slim

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install --production

COPY . .

ENV PORT=8080
ENV HOST=0.0.0.0
ENV PROXY_SECRET=gif

EXPOSE 8080

CMD ["node", "index.js"]