++
This commit is contained in:
+14
-11
@@ -5,14 +5,17 @@ RUN npm ci
|
||||
COPY frontend/ .
|
||||
RUN npm run build
|
||||
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc libcurl4-openssl-dev libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY backend/ backend/
|
||||
COPY --from=frontend /app/frontend/dist backend/app/static
|
||||
RUN pip install --no-cache-dir -e backend/
|
||||
ENV DATABASE_DIR=/app/data
|
||||
EXPOSE 8000
|
||||
CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc libcurl4-openssl-dev libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY backend/ backend/
|
||||
COPY custom_simulation/ custom_simulation/
|
||||
COPY --from=frontend /app/frontend/dist backend/app/static
|
||||
RUN pip install --no-cache-dir -e backend/
|
||||
ENV DATABASE_DIR=/app/data
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
RUN mkdir -p /app/data /app/logs /app/backend/logs /app/custom_simulation
|
||||
EXPOSE 8000
|
||||
CMD ["sh", "-c", "exec uvicorn app.main:app --host ${HOST:-0.0.0.0} --port ${PORT:-8000}"]
|
||||
|
||||
Reference in New Issue
Block a user