-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Kyle Wigley
committed
Mar 12, 2021
1 parent
e302ab5
commit 761bc13
Showing
1 changed file
with
32 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG BASE_IMAGE="python:3.8-slim-buster" | ||
|
||
FROM $BASE_IMAGE | ||
ARG BASE_REQUIREMENTS_SRC_PATH | ||
ARG WHEEL_REQUIREMENTS_SRC_PATH | ||
ARG DIST_PATH | ||
RUN apt-get update \ | ||
&& apt-get dist-upgrade -y \ | ||
&& apt-get install -y --no-install-recommends \ | ||
git \ | ||
software-properties-common \ | ||
make \ | ||
build-essential \ | ||
ca-certificates \ | ||
libpq-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN echo BASE_REQUIREMENTS_SRC_PATH=$BASE_REQUIREMENTS_SRC_PATH | ||
RUN echo WHEEL_REQUIREMENTS_SRC_PATH=$WHEEL_REQUIREMENTS_SRC_PATH | ||
RUN echo DIST_PATH=$DIST_PATH | ||
COPY $BASE_REQUIREMENTS_SRC_PATH ./requirements.txt | ||
COPY $WHEEL_REQUIREMENTS_SRC_PATH ./wheel_requirements.txt | ||
COPY $DIST_PATH ./dist | ||
RUN pip install --upgrade pip setuptools | ||
RUN pip install --requirement ./requirements.txt | ||
RUN pip install --requirement ./wheel_requirements.txt | ||
ENV PYTHONIOENCODING=utf-8 | ||
ENV LANG C.UTF-8 | ||
WORKDIR /usr/app | ||
VOLUME /usr/app | ||
ENTRYPOINT ["dbt"] |