-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (41 loc) · 976 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Use Ubuntu 22.04 as the base image
FROM ubuntu:22.04
# Set non-interactive mode to prevent prompts during installation
ARG DEBIAN_FRONTEND=noninteractive
# Update, install common packages, and clean up in a single layer
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
gcc \
g++ \
gdb \
gdbserver \
curl \
vim \
git \
nano \
net-tools \
python3 \
python3-pip \
python3-dev \
build-essential \
unzip \
wget \
lsb-release \
ca-certificates \
libcurl4-openssl-dev \
libboost-all-dev
# Install common Python packages
RUN pip3 install --no-cache-dir \
numpy==1.23.5 \
pandas==1.5.3 \
matplotlib==3.6.2 \
requests==2.28.2 \
flask==2.2.2 \
scipy==1.9.3 \
jupyter==1.0.0
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8
# Set default working directory
WORKDIR /app