quita el --production the RUN bun install en el Dockerfile

main
borja 3 months ago
parent 027e11523e
commit 561267d4cd

@ -4,7 +4,7 @@ WORKDIR /app
# Install dependencies first (better layer caching) # Install dependencies first (better layer caching)
COPY package.json bun.lock ./ COPY package.json bun.lock ./
RUN bun install --production RUN bun install
# Copy only necessary files # Copy only necessary files
COPY src/ ./src/ COPY src/ ./src/
@ -12,7 +12,7 @@ COPY index.ts ./
# Health check # Health check
HEALTHCHECK --interval=30s --timeout=3s \ HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost:3007/health || exit 1 CMD curl -f http://localhost:3007/health || exit 1
# Server runs on port 3007 by default # Server runs on port 3007 by default
EXPOSE 3007 EXPOSE 3007

Loading…
Cancel
Save