Environment variable for frontend build
This commit is contained in:
@@ -25,5 +25,3 @@ services:
|
||||
dockerfile: Dockerfile_prod
|
||||
ports:
|
||||
- "3003:3000"
|
||||
environment:
|
||||
REACT_APP_API_URL: "http://192.168.1.171:8000"
|
||||
|
||||
@@ -21,6 +21,9 @@ RUN npm install
|
||||
# Copies everything over to Docker environment
|
||||
COPY . .
|
||||
|
||||
ENV REACT_APP_API_URL="http://192.168.1.171:8000"
|
||||
|
||||
|
||||
# Build for production.
|
||||
RUN npm run build --production
|
||||
|
||||
|
||||
Reference in New Issue
Block a user