Skip to content

Instantly share code, notes, and snippets.

@elexisvenator
Created November 11, 2019 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elexisvenator/eb329e01106f241f3e1f86a1c30621f3 to your computer and use it in GitHub Desktop.
Save elexisvenator/eb329e01106f241f3e1f86a1c30621f3 to your computer and use it in GitHub Desktop.
dbt trimmed dockerfile. 0.15.0rc1
FROM ubuntu:16.04
### <SNIP>
# python libraries
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y --no-install-recommends \
python3.7 \
python3.7-dev \
python3.7-venv && ln -sf /usr/bin/python3.7 /usr/local/bin/python3
RUN python3 --version
RUN python3.7 --version
RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python3.7 get-pip.py \
&& ln -sf /usr/local/bin/pip /usr/local/bin/pip3
RUN pip3 --version
RUN pip3.7 --version
### <SNIP>
RUN rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash local
RUN pip3 install --upgrade pip
#RUN pip3 --no-cache-dir install awscli==1.16.234
RUN pip3 --no-cache-dir install dbt-core==0.15.0rc1
RUN pip3 --no-cache-dir install dbt-postgres==0.15.0rc1
### <SNIP>
RUN cd /home/local/transform && dbt deps
CMD ./dw_pipeline.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment