24 lines
617 B
Docker
24 lines
617 B
Docker
FROM python:3.11-slim
|
|
|
|
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/README.md ./
|
|
|
|
COPY app/core ./app/core
|
|
COPY app/services/common/ ./app/services/common/
|
|
COPY app/services/database/ ./app/services/database/
|
|
COPY app/services/types/ ./app/services/types/
|
|
|
|
RUN apt-get update && apt-get install -y bash
|
|
RUN mkdir -p /app/data
|
|
RUN chmod +x /app/services/database/entrypoint.sh
|
|
|
|
CMD ["bash", "/app/services/database/entrypoint.sh"]
|