gitea work flow update
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
node_modules
|
||||
.next
|
||||
out
|
||||
build
|
||||
coverage
|
||||
.vercel
|
||||
|
||||
.env
|
||||
.env.*
|
||||
!.env.local.example
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
@@ -4,4 +4,4 @@
|
||||
#
|
||||
# Use the backend's HTTP port: its HTTPS port serves a self-signed dev cert that the
|
||||
# proxy will refuse.
|
||||
BACKEND_ORIGIN=http://localhost:5224
|
||||
BACKEND_ORIGIN=http://localhost:6701
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
FROM node:22-alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PORT=6702
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/next.config.ts ./next.config.ts
|
||||
|
||||
EXPOSE 6702
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
@@ -8,7 +8,7 @@ import path from "path"
|
||||
//
|
||||
// Defaults to the backend's HTTP port: the HTTPS port uses a self-signed dev cert that
|
||||
// this proxy would reject.
|
||||
const BACKEND_ORIGIN = process.env.BACKEND_ORIGIN ?? "http://localhost:5224"
|
||||
const BACKEND_ORIGIN = process.env.BACKEND_ORIGIN ?? "http://localhost:6701"
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
turbopack: {
|
||||
|
||||
Reference in New Issue
Block a user