-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 803 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 803 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
FROM python:3.11-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Build context is the parent directory (/home/manish/Desktop/machine)
# so sibling repos are accessible during the build.
# Install IAM client SDK from source, then discard the source tree.
COPY omnibioai-iam-client /tmp/omnibioai-iam-client
RUN pip install --no-cache-dir /tmp/omnibioai-iam-client \
&& rm -rf /tmp/omnibioai-iam-client
# Install gateway Python dependencies.
COPY omnibioai-api-gateway/requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the gateway service source.
COPY omnibioai-api-gateway .
EXPOSE 8080
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]