1
0
mirror of synced 2025-12-19 18:14:56 -05:00
Files
airbyte/dataline-integrations/singer/postgres/destination/Dockerfile
2020-08-28 14:04:51 -07:00

21 lines
548 B
Docker

FROM python:3.7-slim
WORKDIR /singer
ENV VIRTUAL_ENV=/singer/env
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install dependencies:
COPY requirements.txt .
RUN apt-get update && \
# https://github.com/datamill-co/target-postgres/issues/186
# Need to install libpq and gcc since they're not listed in pip requirements
apt-get -y install libpq-dev=11.7-0+deb10u1 && \
apt-get -y install gcc=4:8.3.0-1 && \
python -m pip install --upgrade pip && \
pip install -r requirements.txt
ENTRYPOINT ["target-postgres"]