mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
Mobile and Docker Update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
FROM oven/bun:1 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -7,24 +7,24 @@ WORKDIR /app
|
||||
COPY package.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
RUN bun install
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the SvelteKit app
|
||||
RUN npm run build
|
||||
RUN bun run build
|
||||
|
||||
# Production stage
|
||||
FROM node:20-alpine AS production
|
||||
FROM oven/bun:1 AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json for production dependencies
|
||||
# Copy package.json and lockfile for production dependencies
|
||||
COPY package.json ./
|
||||
|
||||
# Install only production dependencies
|
||||
RUN npm install --omit=dev
|
||||
RUN bun install --production
|
||||
|
||||
# Copy built files from builder
|
||||
COPY --from=builder /app/build ./build
|
||||
@@ -38,4 +38,4 @@ ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
# Start the server
|
||||
CMD ["node", "server/index.js"]
|
||||
CMD ["bun", "server/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user