-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile.sms_bridge
More file actions
39 lines (33 loc) · 1.08 KB
/
Dockerfile.sms_bridge
File metadata and controls
39 lines (33 loc) · 1.08 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
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONPATH=/app \
IPFS_DATASETS_AUTO_INSTALL=false \
IPFS_AUTO_INSTALL=false \
IPFS_DATASETS_PY_MINIMAL_IMPORTS=1 \
IPFS_DATASETS_PY_INCLUDE_VCS_DEPENDENCIES=0 \
IPFS_DATASETS_PY_AUTO_NLTK_DOWNLOAD=0 \
IPFS_DATASETS_PY_AUTO_GROTH16_BUILD=0
WORKDIR /app
RUN apt-get update \
&& apt-get install --no-install-recommends -y git \
&& rm -rf /var/lib/apt/lists/* \
&& python -m pip install --no-cache-dir --upgrade pip \
&& python -m pip install --no-cache-dir \
"fastapi>=0.110" \
"uvicorn[standard]>=0.29" \
pydantic \
"python-multipart>=0.0.9" \
duckdb \
cryptography \
"multiformats>=0.3.0" \
"ipfshttpclient>=0.7.0" \
requests \
urllib3 \
boto3 \
"jsonschema>=4.0.0" \
"cachetools>=5.3.0"
COPY . /app
RUN python -m pip install --no-cache-dir --no-deps -e /app
EXPOSE 8061
CMD ["python", "-m", "ipfs_datasets_py.messaging.sms_bridge", "--host", "0.0.0.0", "--port", "8061"]