Skip to content

Commit

Permalink
feature: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jing-zhi committed Mar 19, 2024
1 parent 1329655 commit 78d506c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions actions/python-script/4.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:latest

# The original 4.0 version is missing. This is a simulation supplement and can be used normally
MAINTAINER jingzhi [email protected]>

# 安装依赖
RUN apt-get update -y && apt-get install -y python3

# 安装 Python 相关库
RUN apt-get -y install python3-pip
RUN python3 -m pip install aliyun-python-sdk-core
RUN python3 -m pip install oss2
RUN python3 -m pip install kafka-python
RUN python3 -m pip install redis
RUN python3 -m pip install elasticsearch
RUN python3 -m pip install thrift
RUN python3 -m pip install pyhive

# 设置软链接
RUN ln -s /usr/bin/python3 /usr/bin/python

# 设置工作目录
WORKDIR /

CMD ["/bin/bash"]

0 comments on commit 78d506c

Please sign in to comment.