kv-music/Dockerfile
Eduard Prigoana e9bdceed95
Remove devDependencies pruning step from Dockerfile
Removed the step to prune devDependencies from the Docker image build process.
2026-01-27 23:31:10 +02:00

23 lines
402 B
Docker

# Use Bun canary on Alpine
FROM oven/bun:canary-alpine
# Set working directory
WORKDIR /app
# Copy package files first for caching
COPY package.json bun.lock ./
# Install all dependencies (including devDeps)
RUN bun install
# Copy the rest of the project
COPY . .
# Build the project
RUN bun run build
# Expose Vite preview port
EXPOSE 4173
# Run the built project
CMD ["bun", "run", "preview"]