fix: Install all dependencies in server Dockerfile for TypeScript build, then prune dev deps
Some checks failed
build-and-deploy / filter (push) Successful in 2s
build-and-deploy / build (push) Failing after 1m36s
build-and-deploy / deploy (push) Has been skipped

This commit is contained in:
2025-07-05 14:54:47 -06:00
parent 3f52296395
commit c7fa9a12e7

View File

@@ -10,8 +10,8 @@ WORKDIR /app
# Copy package files # Copy package files
COPY package*.json ./ COPY package*.json ./
# Install dependencies # Install all dependencies (including dev for build)
RUN npm install --omit=dev RUN npm install
# Copy source code # Copy source code
COPY . . COPY . .
@@ -19,6 +19,9 @@ COPY . .
# Build TypeScript # Build TypeScript
RUN npm run build RUN npm run build
# Remove dev dependencies after build
RUN npm prune --omit=dev
# Expose port # Expose port
EXPOSE 2567 EXPOSE 2567