This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build Stage | |
FROM node:16-alpine AS BUILD_IMAGE | |
WORKDIR /app | |
COPY package*.json ./ | |
COPY . . | |
RUN npm run build | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---# WSL ip and gateway address | |
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatNetwork /v 1 /t REG_SZ /d "192.168.15.19/24" | |
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatGatewayIpAddress /v 1 /t REG_SZ /d "192.168.15.1" | |
------ | |
Run this on your windows host machine: | |
netsh interface ip add address "vEthernet (WSL)" 192.168.99.1 255.255.255.0 | |
And this on your wsl linux machine: | |
sudo ip addr add 192.168.99.2/24 broadcast 192.168.99.255 dev eth0 label eth0:1; | |
------ | |
sudo ip address add 192.168.15.5/24 brd + dev eth0 |