fix: Dockerfile paths for repo-root build context
This commit is contained in:
parent
1b5c1e2a06
commit
2a2f14cbda
2 changed files with 5 additions and 4 deletions
|
|
@ -44,7 +44,8 @@ services:
|
|||
|
||||
frontend:
|
||||
build:
|
||||
context: ../web/normogen-web
|
||||
context: ..
|
||||
dockerfile: web/normogen-web/Dockerfile
|
||||
container_name: normogen-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ FROM node:20-slim AS node-builder
|
|||
WORKDIR /app
|
||||
|
||||
# Copy package files and install deps.
|
||||
COPY package.json package-lock.json ./
|
||||
COPY web/normogen-web/package.json web/normogen-web/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
# Copy the source and build.
|
||||
COPY . .
|
||||
COPY web/normogen-web/ ./
|
||||
RUN npm run build
|
||||
|
||||
# ============================================================================
|
||||
|
|
@ -27,7 +27,7 @@ FROM rust:latest AS rust-builder
|
|||
WORKDIR /server
|
||||
|
||||
# Copy the frontend-server crate.
|
||||
COPY frontend-server/ ./
|
||||
COPY web/frontend-server/ ./
|
||||
|
||||
# Build release.
|
||||
RUN cargo build --release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue