forked from syntaxbullet/aurorabot
refactor(docker): remove duplicate production stage from Dockerfile
Remove the 'production' stage from Dockerfile that was: - Duplicating functionality already in Dockerfile.prod - Incorrectly running 'bun run dev' instead of production command VPS deployments continue to use Dockerfile.prod as the single source of truth for production builds. Development Dockerfile now only contains development stage.
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -33,20 +33,3 @@ EXPOSE 3000
|
||||
|
||||
# Default command
|
||||
CMD ["bun", "run", "dev"]
|
||||
|
||||
# ============================================
|
||||
# Production stage - full app with source code
|
||||
# ============================================
|
||||
FROM base AS production
|
||||
|
||||
# Copy dependencies from deps stage
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 3000
|
||||
|
||||
# Default command
|
||||
CMD ["bun", "run", "dev"]
|
||||
|
||||
Reference in New Issue
Block a user