You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
695 B
27 lines
695 B
FROM adoptopenjdk/openjdk8-openj9:alpine-slim |
|
|
|
MAINTAINER dev@qingniaoiiot.com |
|
|
|
RUN echo "#aliyun" > /etc/apk/repositories |
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.12/main/" >> /etc/apk/repositories |
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.12/community/" >> /etc/apk/repositories |
|
RUN apk update |
|
|
|
RUN apk add --no-cache tzdata |
|
|
|
ENV TIME_ZONE="Asia/Shanghai" |
|
|
|
RUN set -xe \ |
|
&& apk --no-cache add ttf-dejavu fontconfig |
|
|
|
RUN mkdir -p /snhub |
|
|
|
WORKDIR /snhub |
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo '$TIME_ZONE' > /etc/timezone |
|
|
|
EXPOSE 9093 |
|
|
|
ADD ./target/qn-sn-hub.jar ./app.jar |
|
|
|
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
|
|
|