-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (31 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
37 lines (31 loc) · 1.43 KB
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
FROM ubuntu:18.04
LABEL maintainer="UVA Data Science <nem2p@virginia.edu>"
LABEL org.opencontainers.image.source=https://github.com/ds3002/course
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/New_York
RUN apt-get update
RUN apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:deadsnakes/ppa \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 656408E390CFB1F5 \
&& echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb.list
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3.8 python3.8-dev python3-pip nano \
git curl net-tools jq zip unzip dnsutils httpie tzdata wget \
htop iputils-ping mysql-client redis gsutil apt-transport-https \
ca-certificates gnupg gcc python3-setuptools libffi-dev \
libmysqlclient-dev mongodb-org-shell=4.4.4 \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN rm -R /usr/bin/python3 && \
ln -s /usr/bin/python3.8 /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python
RUN python3 -m pip install --upgrade pip
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" \
-o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir "/home/host"
WORKDIR /root
COPY requirements.txt requirements.txt
RUN python3 -m pip install -r requirements.txt