-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 959 Bytes
/
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
FROM ubuntu:latest
RUN apt update
RUN apt install python3 -y
# install FreeTDS and dependencies
RUN apt-get update \
&& apt install python3-pip -y \
&& apt-get install unixodbc -y \
&& apt-get install unixodbc-dev -y \
&& apt-get install freetds-dev -y \
&& apt-get install freetds-bin -y \
&& apt-get install tdsodbc -y \
&& apt-get install --reinstall build-essential -y
# populate "ocbcinst.ini" as this is where ODBC driver config sits
RUN echo "[FreeTDS]\n\
Description = FreeTDS Driver\n\
Driver = /usr/lib/aarch64-linux-gnu/odbc/libtdsodbc.so\n\
Setup = /usr/lib/aarch64-linux-gnu/odbc/libtdsS.so" >> /etc/odbcinst.ini
WORKDIR /app
ADD requirements.txt .
#Pip command without proxy setting
RUN pip install -r requirements.txt
CMD ["python3","-i","main.py"]
# docker run -t -d -P -v /Users/kdayno/Development/02-PROJECTS/NBAWarRoomDashboard/src:/app --name pyapp01 py-app
# docker exec -it pyapp01 bash