Refactor Docker setup: remove Bun dependency installation
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m55s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m55s
This commit is contained in:
parent
214982649f
commit
1b3ebc3b07
3 changed files with 6 additions and 19 deletions
|
@ -9,10 +9,10 @@ COPY package.json bun.lock* ./
|
|||
# Install all dependencies (including devDependencies for building)
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Copy source code
|
||||
# Copy source code and configuration files
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
# Build the application with Vite
|
||||
RUN bun run build
|
||||
|
||||
# Production stage
|
||||
|
@ -26,7 +26,7 @@ COPY package.json bun.lock* ./
|
|||
# Install only production dependencies
|
||||
RUN bun install --frozen-lockfile --production
|
||||
|
||||
# Copy built application and server
|
||||
# Copy built application and server from build stage
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY src/server.ts ./src/server.ts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue