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
|
||||
ARG NEXT_PUBLIC_API_URL
|
||||
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
+4
-3
@@ -5,8 +5,9 @@ services:
|
||||
- '3000:3000'
|
||||
|
||||
admin:
|
||||
build: ./admin
|
||||
build:
|
||||
context: ./admin
|
||||
args:
|
||||
- NEXT_PUBLIC_API_URL=https://backend.prosapp.co/api/v1
|
||||
ports:
|
||||
- '5173:3000'
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_URL=https://backend.prosapp.co/api/v1
|
||||
|
||||
Reference in New Issue
Block a user