chore: code refine
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user