Skip to content

Instantly share code, notes, and snippets.

@rnascimento13
rnascimento13 / Dockerfile
Created July 13, 2023 17:25
production and dev for a next app
# Build Stage
FROM node:16-alpine AS BUILD_IMAGE
WORKDIR /app
COPY package*.json ./
COPY . .
RUN npm run build
@rnascimento13
rnascimento13 / win_network.txt
Last active September 29, 2023 16:37
windos network
---# 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