mirror of
https://github.com/LukeHagar/subdomain-test.git
synced 2025-12-06 04:21:26 +00:00
Remove Dockerfile, Dockerfile.railpack, .railpackignore, railpack.json, and update package.json scripts to remove Bun references
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
# Dependencies
|
||||
node_modules/
|
||||
bun.lockb
|
||||
|
||||
# Build outputs
|
||||
.svelte-kit/
|
||||
build/
|
||||
dist/
|
||||
|
||||
# Development files
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
# IDE files
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# OS files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage/
|
||||
|
||||
# Dependency directories
|
||||
jspm_packages/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
39
Dockerfile
39
Dockerfile
@@ -1,39 +0,0 @@
|
||||
# -----------------
|
||||
# Build stage
|
||||
# -----------------
|
||||
FROM oven/bun:1.3.0-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy lockfile + package manifests first for better caching
|
||||
COPY bun.lockb package.json ./
|
||||
|
||||
# Install deps (frozen lockfile)
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Copy rest of the project
|
||||
COPY . .
|
||||
|
||||
# Build the SvelteKit app with adapter-node
|
||||
RUN bun run build
|
||||
|
||||
# -----------------
|
||||
# Runtime stage
|
||||
# -----------------
|
||||
FROM oven/bun:1.3.0-alpine AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
# Copy only production artifacts
|
||||
COPY --from=build /app/package.json ./package.json
|
||||
COPY --from=build /app/bun.lockb ./bun.lockb
|
||||
COPY --from=build /app/build ./build
|
||||
|
||||
# Install only production dependencies (if any)
|
||||
RUN bun install --production --frozen-lockfile || true
|
||||
|
||||
ENV NODE_ENV=production
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "run", "start"]
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# Use Bun as the base image
|
||||
FROM oven/bun:1.3.0-alpine
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package.json bun.lockb ./
|
||||
|
||||
# Install dependencies
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN bun run build
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Set environment
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Start the application
|
||||
CMD ["bun", "run", "start"]
|
||||
24
package.json
24
package.json
@@ -4,15 +4,15 @@
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "bun run vite dev",
|
||||
"build": "bun run vite build",
|
||||
"preview": "bun run vite preview",
|
||||
"prepare": "bun run svelte-kit sync || echo ''",
|
||||
"check": "bun run svelte-kit sync && bun run svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "bun run svelte-kit sync && bun run svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"format": "bun run prettier --write .",
|
||||
"lint": "bun run prettier --check .",
|
||||
"start": "node build/index.js"
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"prepare": "svelte-kit sync || echo ''",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"format": "prettier --write .",
|
||||
"lint": "prettier --check .",
|
||||
"start": "bun run build/index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^6.1.0",
|
||||
@@ -30,11 +30,5 @@
|
||||
"tailwindcss": "^4.1.12",
|
||||
"typescript": "^5.9.2",
|
||||
"vite": "^7.1.3"
|
||||
},
|
||||
"bun": {
|
||||
"trustedDependencies": [
|
||||
"@tailwindcss/oxide",
|
||||
"esbuild"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"name": "subdomain-test",
|
||||
"version": "0.0.1",
|
||||
"description": "SvelteKit application with Bun runtime",
|
||||
"main": "build/index.js",
|
||||
"scripts": {
|
||||
"start": "bun run start",
|
||||
"build": "bun run build",
|
||||
"dev": "bun run dev"
|
||||
},
|
||||
"engines": {
|
||||
"bun": ">=1.3.0"
|
||||
},
|
||||
"railpack": {
|
||||
"runtime": "bun",
|
||||
"buildCommand": "bun run build",
|
||||
"startCommand": "bun run start",
|
||||
"port": 3000,
|
||||
"healthCheck": "/",
|
||||
"environment": {
|
||||
"NODE_ENV": "production"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user