FROM node:20-alpine

RUN apk add --no-cache git

COPY deploy/server/ /app/server/

RUN cd /app/server && npm ci

RUN mkdir -p /app/releases

ENV GIT_REPO_URL=""
ENV GIT_BRANCH="main"
ENV VITE_CONVEX_URL=""
ENV VITE_LIVEKIT_URL=""
ENV PORT=3000

EXPOSE 3000

CMD ["node", "/app/server/server.js"]
