ARG CF_API_TOKEN
ARG CF_USER_ID

FROM node:20

WORKDIR /code

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

ENV CF_API_TOKEN=$CF_API_TOKEN
ENV CF_USER_ID=$CF_USER_ID

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