-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonas
authored
Jun 28, 2022
1 parent
0eda29a
commit a319139
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Etc/UTC | ||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
|
||
# install dependencies | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get remove -y python3.10 && \ | ||
apt-get install -y --no-install-recommends software-properties-common gnupg2 && \ | ||
add-apt-repository -y ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential curl \ | ||
libpq-dev \ | ||
libsasl2-dev \ | ||
libssl-dev libffi-dev \ | ||
python3.9 python3.9-dev python3.9-venv libpython3.9-dev libpython3.9 \ | ||
python3.9-distutils \ | ||
unixodbc-dev git && \ | ||
apt-get clean -qq -y && \ | ||
apt-get autoclean -qq -y && \ | ||
apt-get autoremove -qq -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN ln -s /usr/bin/python3.9 /usr/bin/python && \ | ||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
python3.9 get-pip.py | ||
|
||
# extra dependencies for soda-scientific | ||
RUN pip --no-cache-dir install "numpy>=1.15.4" \ | ||
"Cython>=0.22" | ||
RUN pip --no-cache-dir install -r "https://raw.githubusercontent.com/facebook/prophet/v1.0/python/requirements.txt" | ||
|
||
RUN mkdir /app | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --upgrade pip | ||
|
||
COPY . . | ||
|
||
RUN pip install "$(cat dev-requirements.in | grep pip-tools)" && \ | ||
pip install -r dev-requirements.txt | ||
|
||
# notice the -e | ||
RUN cat requirements.txt | while read requirement || [[ -n $requirement ]]; do pip install -e $requirement; done | ||
|
||
RUN apt-get purge -y build-essential git curl && \ | ||
apt-get clean -qq -y && \ | ||
apt-get autoclean -qq -y && \ | ||
apt-get autoremove -qq -y | ||
|
||
ENTRYPOINT [ "soda" ] | ||
CMD [ "scan" ] |