fix missing path to db
This commit is contained in:
@@ -9,8 +9,12 @@ WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Ensure DB directory exists
|
||||
RUN mkdir -p /app/db
|
||||
|
||||
# Copy source code and entrypoint
|
||||
COPY . .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# Expose API port
|
||||
|
||||
@@ -8,7 +8,8 @@ if [ ! -c /dev/net/tun ]; then
|
||||
fi
|
||||
|
||||
# Enable IP forwarding
|
||||
sysctl -w net.ipv4.ip_forward=1
|
||||
sysctl -w net.ipv4.ip_forward=1 || true
|
||||
|
||||
|
||||
# NAT MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
|
||||
Reference in New Issue
Block a user