fix admin Dockerfile: pass NEXT_PUBLIC_API_URL as build arg
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
FROM node:22-alpine AS builder
|
FROM node:22-alpine AS builder
|
||||||
|
ARG NEXT_PUBLIC_API_URL
|
||||||
|
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|||||||
+4
-3
@@ -5,8 +5,9 @@ services:
|
|||||||
- '3000:3000'
|
- '3000:3000'
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
build: ./admin
|
build:
|
||||||
|
context: ./admin
|
||||||
|
args:
|
||||||
|
- NEXT_PUBLIC_API_URL=https://backend.prosapp.co/api/v1
|
||||||
ports:
|
ports:
|
||||||
- '5173:3000'
|
- '5173:3000'
|
||||||
environment:
|
|
||||||
- NEXT_PUBLIC_API_URL=https://backend.prosapp.co/api/v1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user