mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-04 09:41:32 +02:00
initial commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:18-alpine as builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY lumina/package.json lumina/package-lock.json ./
|
||||
RUN npm ci
|
||||
COPY ./lumina/ .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:18-alpine as runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/package.json .
|
||||
COPY --from=builder /app/package-lock.json .
|
||||
COPY --from=builder /app/next.config.mjs ./
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
RUN npm i
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server.js"]
|
||||
7
compose.yaml
Normal file
7
compose.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
version: '3'
|
||||
services:
|
||||
lumina:
|
||||
build: .
|
||||
# image: ghcr.io/lumina-rocks/lumina:latest
|
||||
ports:
|
||||
- "8080:3000"
|
||||
Reference in New Issue
Block a user