mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Fix Docker deployment
This commit is contained in:
@@ -18,7 +18,8 @@ RUN useradd -u 1000 app && \
|
||||
# 2.2. Copy content and create dirs
|
||||
COPY --chown=app backend .
|
||||
COPY --from=builder --chown=app /app/.venv .venv
|
||||
RUN mkdir -p /app/data && \
|
||||
RUN mkdir -p /app/data /app/logs && \
|
||||
chown -R app /app/data /app/logs && \
|
||||
printf '#!/bin/sh\nexec /app/.venv/bin/python /app/admin_cli.py "$@"\n' > /usr/local/bin/admin-cli && \
|
||||
chmod +x /usr/local/bin/admin-cli
|
||||
|
||||
|
||||
Reference in New Issue
Block a user