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:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ../web/normogen-web
|
context: ..
|
||||||
|
dockerfile: web/normogen-web/Dockerfile
|
||||||
container_name: normogen-frontend
|
container_name: normogen-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@ FROM node:20-slim AS node-builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files and install deps.
|
# 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
|
RUN npm ci
|
||||||
|
|
||||||
# Copy the source and build.
|
# Copy the source and build.
|
||||||
COPY . .
|
COPY web/normogen-web/ ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
@ -27,7 +27,7 @@ FROM rust:latest AS rust-builder
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
|
|
||||||
# Copy the frontend-server crate.
|
# Copy the frontend-server crate.
|
||||||
COPY frontend-server/ ./
|
COPY web/frontend-server/ ./
|
||||||
|
|
||||||
# Build release.
|
# Build release.
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue