add typescript to backend

This commit is contained in:
fred 2025-08-15 15:02:11 -07:00
parent 0a41568a2e
commit 30b28056de
10 changed files with 221 additions and 67 deletions

View file

@ -4,11 +4,10 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN if [ "$NODE_ENV" = "dev" ]; then npm install; else npm install --only=production; fi
COPY . .
EXPOSE 3000
# CMD ["npm", "run", "dev"]
CMD npm run $NODE_ENV