Environment variable for frontend build
This commit is contained in:
@@ -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