You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-cloud-alibaba/spring-cloud-alibaba-examples/appactive-example/frontend/Dockerfile

20 lines
373 B
Docker

FROM openjdk:8-jdk-alpine
WORKDIR /app
COPY target/frontend-0.2.1.jar /app
# 设置文件夹操作权限
RUN chown -R root:root /app/* && \
chmod a+rw -R /app/*
#EXPOSE 8088
USER root:root
ARG UNITFLAG=default
ENV TZ=Asia/Shanghai \
UNITFLAG=$UNITFLAG \
LANG="en_US.UTF-8"
ENTRYPOINT ["sh", "-c"]
CMD ["java -jar /app/frontend-0.2.1.jar"]
#CMD ["sleep 10m"]