-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (21 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.9.12-slim-buster
LABEL maintainer="data-engineering@energyaspects.com"
ARG SSH_PRIVATE_KEY
RUN pip3 install pip --upgrade
RUN apt-get update && apt-get install curl gnupg -y
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN apt-get update; apt-get install curl apt-transport-https ca-certificates -y
# Installing Git and other useful packages
RUN apt-get update && apt-get install git google-cloud-sdk git chromium wget unzip tesseract-ocr gcc python-dev libjpeg-dev zlib1g-dev -y
# PostgreSQL dependecies
RUN apt-get update && apt-get install libpq-dev -y
# unpacking SSH key
RUN mkdir -p ~/.ssh && umask 0077 && echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa \
&& git config --global url."git@github.com:".insteadOf https://github.com/ \
&& ssh-keyscan github.com >> ~/.ssh/known_hosts
RUN pip3 install git+ssh://git@github.com/energyaspects/helper_functions.git@latest
COPY . .
RUN pip install -r ./requirements/requirements.txt
RUN python setup.py install
CMD /bin/sh