chore: compile ts for docker env

This commit is contained in:
Rohit Rajan
2025-12-04 14:07:07 +05:30
parent cb88cd8721
commit 6ef725ddcd
2 changed files with 10 additions and 6 deletions

View File

@@ -8,18 +8,21 @@ COPY .sequelizerc .sequelizerc
# Install node dependencies
COPY package*.json ./
COPY src ./src
COPY public ./public
COPY public ./public
COPY server ./server
COPY tsconfig.json ./
COPY server/tsconfig.json ./server/
# COPY server/start.sh ./
# COPY server/start.sh ./
# Install dependencies
RUN npm install --legacy-peer-deps
# Build TypeScript server
RUN npm run build:server
# Expose backend port
EXPOSE ${BACKEND_PORT:-8080}
# Run migrations & start backend using start script
# Run migrations & start backend using plain node
CMD ["npm", "run", "server"]
# CMD ["sh", "-c", "npm run migrate && npm run server"]