【project】 accomplish the springcloud nacos config-center modification
This commit is contained in:
24
agent/Dockerfile-wsl2
Normal file
24
agent/Dockerfile-wsl2
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
# Base images that the image needs to depend on
|
||||
FROM icederce/eclipse-temurin-11-jre-focal
|
||||
|
||||
# Set environment variables
|
||||
ENV TZ=Asia/Shanghai serverName="" serverIpPbV4="" serverIpInV4="" serverIpPbV6="" serverIpInV6="" location="" provider="" managePort="" cpuBrand="" cpuCore="" memoryTotal="" diskTotal="" diskUsage="" osInfo="" osKernelInfo="" tcpControl="" virtualization="" ioSpeed=""
|
||||
ENV JAVA_OPTS="-Xms2028m -Xmx2048m"
|
||||
|
||||
# Set time zone
|
||||
RUN set -eux; \
|
||||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime; \
|
||||
echo $TZ > /etc/timezone
|
||||
|
||||
# Create Folder
|
||||
RUN mkdir -p /wdd
|
||||
|
||||
# Define the work dir
|
||||
WORKDIR /wdd
|
||||
|
||||
# Copy the jar and rename it
|
||||
COPY ./target/agent-*.jar /wdd/agent.jar
|
||||
|
||||
# When the docker container starts, run the jar
|
||||
ENTRYPOINT exec java ${JAVA_OPTS} -jar /wdd/agent.jar
|
||||
Reference in New Issue
Block a user