fix: use npm i instead of npm ci in Docker build, expose on port 5656
- Dockerfile: drop package-lock.json copy, use npm i instead of npm ci so install works even if lock file is slightly out of sync - docker-compose: map host port 5656 → container port 3000
This commit is contained in:
@@ -3,8 +3,8 @@ FROM node:22-alpine AS build
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json ./
|
||||||
RUN npm ci
|
RUN npm i
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
@@ -25,4 +25,4 @@ ENV PORT=3000
|
|||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["node", "build"]
|
CMD ["node", "build"]
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: english-styler-app
|
container_name: english-styler-app
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "5656:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
model-init:
|
model-init:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
@@ -45,4 +45,4 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
ollama-data:
|
ollama-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user