fix missing path to db

This commit is contained in:
Антон
2026-02-07 14:01:20 +03:00
parent 4bd4127bb5
commit f9df3f8d05
3 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -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