forked from dmaresma/datacontract-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 716 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-bullseye
# Setting PYTHONUNBUFFERED to a non-empty value different from 0 ensures that the python output i.e.
# the stdout and stderr streams are sent straight to terminal (e.g. your container log) without
# being first buffered and that you can see the output of your application in real time.
ENV PYTHONUNBUFFERED=1
# copy resources
COPY pyproject.toml /app/.
COPY MANIFEST.in /app/.
COPY datacontract/ /app/datacontract/
# install requirements
RUN cd /app && pip3 --no-cache-dir install ".[all]"
# install duckdb httpfs extension
RUN python -c "import duckdb; duckdb.connect().sql(\"INSTALL httpfs\");"
RUN mkdir -p /home/datacontract
WORKDIR /home/datacontract
ENTRYPOINT ["datacontract"]