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