Merge branch 'main' of https://github.com/SirBlobby/BitCamp-2026
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
FROM oven/bun:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY website/package.json website/bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Build the SvelteKit application
|
||||
COPY website/ .
|
||||
RUN bun run build
|
||||
|
||||
# Setup the production environment
|
||||
FROM oven/bun:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy production dependencies configuration and install
|
||||
COPY --from=builder /app/package.json /app/bun.lock ./
|
||||
RUN bun install --production --frozen-lockfile
|
||||
|
||||
# Copy the build output and the custom Bun server
|
||||
COPY --from=builder /app/build ./build
|
||||
COPY --from=builder /app/server ./server
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "run", "server/app.ts"]
|
||||
@@ -0,0 +1,13 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
@@ -0,0 +1 @@
|
||||
PORT=3000
|
||||
@@ -30,8 +30,6 @@
|
||||
<span class="absolute left-full ml-4 px-2 py-1 bg-black/80 rounded text-xs opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none md:block hidden border border-white/10">History</span>
|
||||
</a>
|
||||
|
||||
<div class="w-px h-6 md:w-6 md:h-px bg-white/10 my-2"></div>
|
||||
|
||||
<!-- Nav Item: Settings -->
|
||||
<a href="/settings" class="relative flex items-center justify-center p-3 rounded-2xl transition-all duration-300 hover:bg-white/10 group {$page.url.pathname === '/settings' ? 'text-neon-blue drop-shadow-[0_0_10px_rgba(0,243,255,0.6)]' : 'text-slate-400 hover:text-white'}">
|
||||
<Icon icon="mdi:cog-outline" class="text-2xl" />
|
||||
|
||||
Reference in New Issue
Block a user