Compare commits

..

No commits in common. "cda51e34bac03ca587ed761bcc781d68556b20db" and "c7f296597e466b1541e72faa1f9bc427c9751169" have entirely different histories.

3 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# Multi-stage build for production # Multi-stage build for production
FROM python:alpine as base FROM python:3.11-slim as base
# Set environment variables # Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \ ENV PYTHONDONTWRITEBYTECODE=1 \
@ -58,6 +58,7 @@ EXPOSE 8000
CMD ["uvicorn", "app.main:app", \ CMD ["uvicorn", "app.main:app", \
"--host", "0.0.0.0", \ "--host", "0.0.0.0", \
"--port", "8000", \ "--port", "8000", \
"--workers", "8", \ "--workers", "4", \
"--worker-class", "uvicorn.workers.UvicornWorker", \
"--access-log", \ "--access-log", \
"--log-level", "info"] "--log-level", "info"]

View File

@ -66,9 +66,9 @@ services:
context: ./fe context: ./fe
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
target: production target: production
environment: args:
- VITE_API_URL=${VITE_API_URL} - VITE_API_URL=${VITE_API_URL}
- VITE_SENTRY_DSN=${VITE_SENTRY_DSN} - VITE_SENTRY_DSN=${VITE_SENTRY_DSN}
ports: ports:
- "80:3000" - "80:3000"
networks: networks:

View File

@ -53,9 +53,9 @@ RUN echo '{ \n "rewrites": [ \n { "source": "**", "destination": "/index.htm
RUN echo '#!/bin/sh\n\ RUN echo '#!/bin/sh\n\
cat > /app/env-config.js << EOL\n\ cat > /app/env-config.js << EOL\n\
window.ENV = {\n\ window.ENV = {\n\
VITE_API_URL: process.env.VITE_API_URL,\n\ VITE_API_URL: "${VITE_API_URL}",\n\
VITE_SENTRY_DSN: process.env.VITE_SENTRY_DSN,\n\ VITE_SENTRY_DSN: "${VITE_SENTRY_DSN}",\n\
VITE_ROUTER_MODE: process.env.VITE_ROUTER_MODE\n\ VITE_ROUTER_MODE: "${VITE_ROUTER_MODE}"\n\
};\n\ };\n\
EOL\n\ EOL\n\
serve -s . -l 3000' > /app/start.sh && chmod +x /app/start.sh serve -s . -l 3000' > /app/start.sh && chmod +x /app/start.sh