FROM node:22-alpine
WORKDIR /app
# badge cards: the hunter's name is drawn onto the artwork with ffmpeg
RUN apk add --no-cache ffmpeg ttf-dejavu
COPY package.json ./
RUN npm install --omit=dev --no-audit --no-fund
COPY . .
RUN mkdir -p /app/data
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
CMD ["node","server.js"]
