chore: code refine

This commit is contained in:
SvenFE
2025-08-05 11:36:39 +08:00
parent 885c7dbdcf
commit fd9b26ca67
2 changed files with 6 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ FROM node:24-alpine AS base
# Install dependencies only when needed
FROM base AS deps
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk update && apk add --no-cache gcompat
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Set npm registry mirror

View File

@@ -1,9 +1,10 @@
services:
nextjs-app:
nextjs_app:
build:
context: .
dockerfile: Dockerfile
target: runner
# image: honghe-acfic-chat:latest
container_name: honghe-acfic-chat
ports:
- "3004:3000"
@@ -15,8 +16,8 @@ services:
# - NEXT_TELEMETRY_DISABLED=1
restart: unless-stopped
networks:
- nextjs-network
- nextjs_network
networks:
nextjs-network:
nextjs_network:
driver: bridge