forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.datadog
More file actions
27 lines (19 loc) · 839 Bytes
/
Copy pathDockerfile.datadog
File metadata and controls
27 lines (19 loc) · 839 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
FROM python:3.11 AS builder
ENV PATH="/opt/venv/bin:$PATH"
RUN python -m venv /opt/venv
COPY plugins/requirements.txt /tmp/requirements.txt
COPY plugins/omi-plugin-sdk /app/omi-plugin-sdk
WORKDIR /app
RUN pip install --no-cache-dir -r /tmp/requirements.txt
FROM python:3.11-slim
RUN apt-get update && apt-get -y dist-upgrade && rm -rf /var/lib/apt/lists/*
WORKDIR /app
ENV PATH="/opt/venv/bin:$PATH"
RUN apt-get update && apt-get -y install ffmpeg curl unzip && rm -rf /var/lib/apt/lists/* && \
pip install --target /dd_tracer/python/ ddtrace
COPY --from=builder /opt/venv /opt/venv
COPY --from=gcr.io/datadoghq/serverless-init:1 /datadog-init /app/datadog-init
COPY plugins/ .
EXPOSE 8080
ENTRYPOINT ["/app/datadog-init"]
CMD ["/dd_tracer/python/bin/ddtrace-run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]