-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (34 loc) · 1.32 KB
/
Copy pathDockerfile
File metadata and controls
49 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM python:3.13-slim AS runtime-base
WORKDIR /app
ARG MNEMOFORGE_GIT_COMMIT=unknown
ARG MNEMOFORGE_BUILD_TAG=unknown
ARG MNEMOFORGE_IMAGE_REPOSITORY=unknown
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ app/
COPY static/ static/
COPY mcp/ mcp/
COPY cli/ cli/
COPY docs/ docs/
COPY demo/ demo/
COPY README.md SETUP.md CLIENT_SETUP.md STATUS.md .env.public.example ./
RUN mkdir -p qdrant_data system_data
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
MNEMOFORGE_GIT_COMMIT=$MNEMOFORGE_GIT_COMMIT \
MNEMOFORGE_BUILD_TAG=$MNEMOFORGE_BUILD_TAG \
MNEMOFORGE_IMAGE_REPOSITORY=$MNEMOFORGE_IMAGE_REPOSITORY
LABEL org.opencontainers.image.title="SloplessCode" \
org.opencontainers.image.revision=$MNEMOFORGE_GIT_COMMIT \
org.opencontainers.image.version=$MNEMOFORGE_BUILD_TAG \
org.opencontainers.image.source="https://github.com/Utundry/sloplesscode" \
org.opencontainers.image.description="SloplessCode (formerly Mnemoforge)"
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
FROM runtime-base AS self-development
COPY scripts/ scripts/
ENV PROJECT_CAPABILITIES=repository-development-tools
FROM runtime-base AS production
RUN rm -f docs/PROJECT_LAW.md
ENV AUTO_BOOTSTRAP_SELF_PROJECT_LAWS=0 \
PROJECT_CAPABILITIES=