update: use indonesia server

This commit is contained in:
2025-07-24 14:00:58 +07:00
parent 53b1ad3a31
commit d5ffb87e1a
2 changed files with 2 additions and 14 deletions

View File

@ -1,40 +1,28 @@
# Step 1: Build the application
FROM node:22-alpine AS builder
# Set working directory
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json* ./
RUN npm ci
# Copy application source
COPY . .
# Build the application
RUN npm run build
# Step 2: Run the application using a minimal image
FROM node:22-alpine AS runner
# Set working directory
WORKDIR /app
# Install only production dependencies
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
# Copy built assets from builder
COPY --from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
#COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Set environment variable for production
ENV NODE_ENV=production
# Expose port (default for Next.js)
EXPOSE 3000
# Start the Next.js app
CMD ["npm", "start"]

View File

@ -4,7 +4,7 @@ import { useState } from "react"
export default function Card() {
const [copied, setCopied] = useState(false)
const command = "ssh tunnl.live -p 2200 -R 443:localhost:8000"
const command = "ssh id.tunnl.live -p 2200 -R 443:localhost:8000"
const copyToClipboard = () => {
navigator.clipboard.writeText(command)