forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.memory_maintenance_job
More file actions
29 lines (21 loc) · 939 Bytes
/
Copy pathDockerfile.memory_maintenance_job
File metadata and controls
29 lines (21 loc) · 939 Bytes
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
FROM gcr.io/based-hardware-dev/python:3.11-slim-forky AS builder
ENV PATH="/opt/venv/bin:$PATH"
RUN python -m venv /opt/venv
# build-essential (not bare gcc): forky slim lacks libc headers otherwise, and
# requirements.txt compiles webrtcvad from source.
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY backend/requirements.txt /tmp/reqs/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/reqs/requirements.txt
FROM gcr.io/based-hardware-dev/python:3.11-slim-forky
WORKDIR /app
ENV PATH="/opt/venv/bin:$PATH"
# No ffmpeg/curl/unzip: ST→LT maintenance is Firestore/LLM/vector only.
# Patch OS packages in this layer (#7136).
RUN apt-get update && apt-get -y dist-upgrade && rm -rf /var/lib/apt/lists/*
COPY --from=builder /opt/venv /opt/venv
COPY backend/ .
COPY backend/modal/ .
CMD ["python", "memory_maintenance_job.py"]