Spaces:
Sleeping
Sleeping
File size: 790 Bytes
a1f5dd4 08d5c49 75705d9 08d5c49 82a7a24 dcc1c69 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM ubuntu:latest
MAINTAINER woxigousade
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV TZ=Asia/Shanghai
RUN apt update
#添加中文字体
#RUN apt-get install -y fontconfig fonts-wqy-zenhei fonts-wqy-microhei && fc-cache -fv
#安装jdk11
RUN apt-get -y install openjdk-11-jdk
COPY target/chiral-carbon-captcha-0.0.1.jar /app.jar
RUN chmod -R 777 /tmp
RUN mkdir -p /logs/prod && \
touch /logs/prod/chiral-carbon-captcha-prod-log-info.log && \
touch /logs/prod/chiral-carbon-captcha-prod-log-warn.log && \
touch /logs/prod/chiral-carbon-captcha-prod-log-error.log && \
chmod -R 777 /logs
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=dev","-Dfile.encoding=UTF-8","-Dserver.port=7860","-jar","/app.jar"] |