Update dockerfile and fly
All checks were successful
Build and deploy / deploy (push) Successful in 2m15s
All checks were successful
Build and deploy / deploy (push) Successful in 2m15s
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -15,7 +15,7 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN npm run build
|
||||
|
||||
@@ -23,8 +23,8 @@ RUN npm run build
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV production
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
@@ -41,11 +41,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/db.sql ./db.sql
|
||||
|
||||
USER nextjs
|
||||
USER nextjsw
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENV PORT 3000
|
||||
ENV PORT=3000
|
||||
|
||||
# server.js is created by next build from the standalone output
|
||||
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
|
||||
|
||||
4
fly.toml
4
fly.toml
@@ -13,10 +13,10 @@ primary_region = 'lhr'
|
||||
force_https = true
|
||||
auto_stop_machines = 'stop'
|
||||
auto_start_machines = true
|
||||
min_machines_running = 0
|
||||
min_machines_running = 1
|
||||
processes = ['app']
|
||||
[[http_service.checks]]
|
||||
grace_period = "15s"
|
||||
grace_period = "30s"
|
||||
interval = "120s"
|
||||
method = "GET"
|
||||
timeout = "5s"
|
||||
|
||||
Reference in New Issue
Block a user