Mobile and Docker Update

This commit is contained in:
2026-01-26 10:11:17 +00:00
parent 6afbfd793a
commit 8b939cbbe1
7 changed files with 25 additions and 192 deletions

View File

@@ -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"]