Refactor Docker setup: remove Bun dependency installation
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m55s

This commit is contained in:
Cameron Redmore 2025-08-08 11:24:50 +01:00
parent 214982649f
commit 1b3ebc3b07
No known key found for this signature in database
3 changed files with 6 additions and 19 deletions

View file

@ -5,9 +5,6 @@ yarn-debug.log*
yarn-error.log* yarn-error.log*
# Development files # Development files
src/
index.html
vite.config.js
*.md *.md
.git/ .git/
.gitignore .gitignore
@ -45,3 +42,6 @@ logs
# Other # Other
coverage/ coverage/
.nyc_output/ .nyc_output/
# Built files (will be built inside Docker)
dist/

View file

@ -26,19 +26,6 @@ jobs:
with: with:
fetch-depth: 0 # Recommended for metadata action fetch-depth: 0 # Recommended for metadata action
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
shell: sh
- name: Build project
run: bun run build
shell: sh
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3

View file

@ -9,10 +9,10 @@ COPY package.json bun.lock* ./
# Install all dependencies (including devDependencies for building) # Install all dependencies (including devDependencies for building)
RUN bun install --frozen-lockfile RUN bun install --frozen-lockfile
# Copy source code # Copy source code and configuration files
COPY . . COPY . .
# Build the application # Build the application with Vite
RUN bun run build RUN bun run build
# Production stage # Production stage
@ -26,7 +26,7 @@ COPY package.json bun.lock* ./
# Install only production dependencies # Install only production dependencies
RUN bun install --frozen-lockfile --production 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 --from=builder /app/dist ./dist
COPY src/server.ts ./src/server.ts COPY src/server.ts ./src/server.ts