Dockerfile(基于jdk17)

以在jar包目录下开始为例

FROM openjdk:17-alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk add busybox-extras
ADD 项目名字.jar 自定义别名.jar
CMD java -jar /自定义别名.jar

你可能感兴趣的:(java,pycharm,ide,python)