-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile
23 lines (23 loc) · 1013 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
# build docker image with python 3.10
FROM ubuntu:22.04
ENV TZ=America/New_York
RUN apt update && \
apt install -yq tzdata && \
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
WORKDIR /app
RUN apt install libgl1-mesa-glx -y
RUN apt install -y ca-certificates curl gnupg lsb-release
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt update
RUN apt install -y iputils-ping
RUN apt install -y jq
RUN apt install -y docker-ce-cli
RUN apt install -y python3.10
RUN apt install -y python3-pip
RUN apt install -y nano
# install the requirements
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install -r requirements.txt