Skip to content

Commit 785c3c7

Browse files
committed
test: python
1 parent fb67095 commit 785c3c7

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM python:3.11-slim
22

33
RUN sed -i 's|http://archive.ubuntu.com|http://mirrors.aliyun.com|g; s|http://security.ubuntu.com|http://mirrors.aliyun.com|g' /etc/apt/sources.list.d/ubuntu.sources
44

@@ -18,9 +18,8 @@ RUN sed -i \
1818
apt-get update
1919

2020

21-
RUN apt-get install -y \
22-
openssh-server \
23-
sudo && \
24-
rm -rf /var/lib/apt/lists/*
21+
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
build-essential \
23+
&& rm -rf /var/lib/apt/lists/*
2524

2625
CMD [ "/bin/bash" ]

0 commit comments

Comments
 (0)