Commit e0d80fbc authored by liqin's avatar liqin 💬

bug fixed

parent 0f0f4e13
FROM frolvlad/alpine-oraclejdk8
#更改安装源
COPY sources.list $CATALINA_HOME/
RUN cat $CATALINA_HOME/sources.list > /etc/apk/repositories
#更新源,安装yasm ffmpeg
RUN apk update
RUN apk add yasm && apk add ffmpeg
ADD ./trcloud-personal-note-1.0.0.jar /trcloud-personal-note.jar
EXPOSE 8971
CMD ["java","-jar","/trcloud-personal-note.jar"]
\ No newline at end of file
FROM tomcat:9-jre8-alpine
MAINTAINER bettysboy "yasaka@trgis.com"
#设置Java环境变量
ENV JAVA_OPTS -server -Xms512M -Xmx2048M -Duser.timezone="Asia/Shanghai"
#配置服务器参数
COPY server.xml $CATALINA_HOME/conf/server.xml
COPY web.xml $CATALINA_HOME/conf/web.xml
#拷贝程序包到服务器
RUN rm -rf $CATALINA_HOME/webapps/*
COPY akymbq.war $CATALINA_HOME/webapps/webapp.war
#更改安装源
COPY sources.list $CATALINA_HOME/
RUN cat $CATALINA_HOME/sources.list >> /etc/apt/sources.list
#更新源,安装yasm ffmpeg
RUN apt-get update
RUN apt-get -y --force-yes install yasm ffmpeg
EXPOSE 8080
\ No newline at end of file
#http://dl-cdn.alpinelinux.org/alpine/v3.7/main
#http://dl-cdn.alpinelinux.org/alpine/v3.7/community
https://mirrors.aliyun.com/alpine/v3.6/main/
https://mirrors.aliyun.com/alpine/v3.6/community/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment