-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
80 lines (54 loc) · 1.54 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM amazonlinux:latest
LABEL maintainer="Wang Zhiwei <[email protected]>"
# Install necessary packages for locales
RUN yum update -y && \
yum clean metadata && \
yum install -y glibc-langpack-en
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
RUN locale
# Install Python 3.9
RUN yum -y install \
wget \
tar \
gzip \
make \
gcc \
openssl-devel \
bzip2-devel \
libffi-devel \
sqlite-devel \
zip \
unzip \
lzop \
git \
which \
zlib-devel
WORKDIR /opt
RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz
RUN tar xzf Python-3.9.7.tgz
WORKDIR /opt/Python-3.9.7
RUN ./configure --enable-optimizations
RUN make altinstall
WORKDIR /
RUN rm -rf /opt/Python-3.9.7*
RUN ln -s $(which python3.9) /usr/local/bin/python3
RUN python3 -m pip install -U pip
# Install mssql-tools
RUN curl https://packages.microsoft.com/config/rhel/8/prod.repo > /etc/yum.repos.d/mssql-release.repo && \
yum remove mssql-tools unixODBC-utf16 unixODBC-utf16-devel && \
ACCEPT_EULA=Y yum install -y mssql-tools18 unixODBC-devel
RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
RUN yum clean all
# Install AWS CLI
WORKDIR /opt
RUN yum remove awscli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
WORKDIR /
RUN rm -rf /opt/aws*
# Install StreamXfer
RUN python3 -m pip install -U git+https://github.com/zhiweio/streamxfer@master
CMD ["/bin/bash"]