rabbitmq implemented and tested
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
FROM python:3.12-slim
|
||||
FROM python:3.11-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV VIRTUAL_ENV=/opt/venv
|
||||
ENV PRISMA_SCHEMA_PATH=/app/services/database/schema.prisma
|
||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY app/services/database/pyproject.toml ./
|
||||
COPY app/services/database/README.md ./
|
||||
|
||||
COPY app/core ./app/core
|
||||
COPY app/services/common/ ./app/services/common/
|
||||
COPY app/services/database/ ./app/services/database/
|
||||
|
||||
RUN pip install --upgrade pip && pip install --no-cache-dir .
|
||||
RUN apt-get update && apt-get install -y bash
|
||||
RUN mkdir -p /app/data
|
||||
RUN chmod +x /app/services/database/entrypoint.sh
|
||||
|
||||
CMD ["python", "-m", "app.services.database.main"]
|
||||
CMD ["bash", "/app/services/database/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user