使用docekr模式的含义具体看这个:https://www.cnblogs.com/sanduzxcvbnm/p/14681419.html

若还需要其他软件,直接添加就行了

FROM jeanblanchard/alpine-glibc:latest
MAINTAINER sandu <1103324414@qq.com>
#COPY localtime /etc/localtime
#COPY timezone /etc/timezone
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories
RUN echo "https://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories
RUN ["apk","update"]
RUN ["apk","add","curl"]
RUN ["apk","add","openjdk8"]
RUN ["apk","add","maven"]
# COPY settings.xml /usr/share/java/maven-3/conf/settings.xml # 同目录下放置settings.xml文件,替换到自带的,这样就可以使用私有库了
RUN ["apk","add","yarn"]
RUN ["apk","add","nodejs"]
RUN ["apk","add","npm"]

相关文章:

  • 2022-01-07
  • 2022-01-21
  • 2022-12-23
  • 2021-08-09
  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-08-08
相关资源
相似解决方案