base-app-docker

Dockerfile

FROM adoptopenjdk/openjdk11:alpine

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo "alias ll='ls -l'" >> /etc/profile

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk update \
&& apk upgrade \
&& apk add --no-cache bash bash-doc bash-completion \
&& apk add vim \
&& apk add curl \
&& apk add ttf-dejavu \
&& rm -rf /var/cache/apk/* \
&& /bin/bash

COPY usr/share/fonts/* /usr/share/fonts/
RUN ls -la /usr/share/fonts

RUN mkdir /var/log/fuanna && mkdir /app
WORKDIR /app
RUN mkdir config && mkdir /pinpoint-agent
COPY config/ config/
COPY pinpoint-agent/ /pinpoint-agent/
COPY /scripts/entrypoint.sh /usr/local/bin/
RUN chmod a+x /usr/local/bin/entrypoint.sh
RUN ls -la /pinpoint-agent/

VOLUME ["/tmp", "/pinpoint-agent"]
EXPOSE 8080

ENV APOLLO_ENV dev
ENV SPRING_PROFILES_ACTIVE dev
ENV JAVA_OPTS ""
ENV COLLECTOR_IP ""
ENV COLLECTOR_TCP_PORT 9994
ENV COLLECTOR_STAT_PORT 9995
ENV COLLECTOR_SPAN_PORT 9996
ENV PROFILER_SAMPLING_RATE 20
ENV AGENT_DEBUG_LEVEL INFO

ENTRYPOINT ["sh", "/usr/local/bin/entrypoint.sh"]
CMD ["tail", "-f", "/dev/null"]

.dockerignore

.git
发布了36 篇原创文章 · 获赞 2 · 访问量 4275
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览