feat(docker): Build containers for Jaffle shop project
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM --platform=linux/amd64 python:3.10-slim-buster
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends
|
||||
|
||||
WORKDIR /usr/src/dbt
|
||||
|
||||
# Install the dbt Postgres adapter. This step will also install dbt-core
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install dbt-postgres==1.2.0
|
||||
RUN pip install pytz
|
||||
|
||||
# Install dbt dependencies (as specified in packages.yml file)
|
||||
# Build seeds, models and snapshots (and run tests wherever applicable)
|
||||
CMD dbt deps && dbt build --profiles-dir ./profiles && sleep infinity
|
||||
Reference in New Issue
Block a user