Revert "initial bun setup"

This reverts commit 5236f7a212.

bun was causing code 1006 websocket errors
This commit is contained in:
Evan
2025-03-16 20:37:04 -07:00
parent 46889077f0
commit 2c075fc382
6 changed files with 18474 additions and 3115 deletions
+10 -16
View File
@@ -1,5 +1,5 @@
# Build stage - will use your native architecture
FROM --platform=$BUILDPLATFORM oven/bun:1 AS builder
# Use an official Node runtime as the base image
FROM node:18
ARG GIT_COMMIT=unknown
ENV GIT_COMMIT=$GIT_COMMIT
@@ -7,29 +7,23 @@ ENV GIT_COMMIT=$GIT_COMMIT
# Set the working directory for the build
WORKDIR /build
# Copy package files
COPY package.json bun.lock ./
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies while bypassing Husky hooks
ENV HUSKY=0
ENV NPM_CONFIG_IGNORE_SCRIPTS=1
RUN mkdir -p .git && bun install --include=dev
RUN mkdir -p .git && npm install --include=dev
# Copy the rest of the application code
COPY . .
# Build the client-side application with verbose output
RUN echo "Starting build process..." && bun run build-prod && echo "Build completed successfully!"
# Build the client-side application
RUN npm run build-prod
# Check output directory
RUN ls -la static || echo "Static directory not found"
# Production stage
FROM oven/bun:1
# Add environment variable
ARG GAME_ENV=prod
ENV GAME_ENV=$GAME_ENV
ENV NODE_ENV=production
ARG GIT_COMMIT=unknown
ENV GIT_COMMIT=$GIT_COMMIT