From b711c158d2a67c1a5af6ad5d7012fa152c9e5cb2 Mon Sep 17 00:00:00 2001 From: mroxso <24775431+mroxso@users.noreply.github.com> Date: Sun, 28 Jan 2024 16:08:20 +0100 Subject: [PATCH] initial commit --- Dockerfile | 19 +++++++++++++++++++ compose.yaml | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..83fb74e --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..2cf66fa --- /dev/null +++ b/compose.yaml @@ -0,0 +1,7 @@ +version: '3' +services: + lumina: + build: . + # image: ghcr.io/lumina-rocks/lumina:latest + ports: + - "8080:3000" \ No newline at end of file