first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
16
base/nacos/1.4.0/Dockerfile
Normal file
16
base/nacos/1.4.0/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM eclipse-temurin:8u412-b08-jre
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
# && apt-get update \
|
||||
&& mkdir /opt/nacos \
|
||||
&& cd /opt/nacos \
|
||||
&& wget -qO- https://github.com/alibaba/nacos/releases/download/1.4.0/nacos-server-1.4.0.tar.gz | tar xz -C /opt/nacos --strip-components=1 \
|
||||
&& sed -i 's|echo "\$JAVA \${JAVA_OPT}".*|echo "$JAVA ${JAVA_OPT}"|' /opt/nacos/bin/startup.sh \
|
||||
&& sed -i 's|nohup.*|$JAVA ${JAVA_OPT} nacos.nacos|' /opt/nacos/bin/startup.sh
|
||||
|
||||
WORKDIR /opt/nacos
|
||||
EXPOSE 8848 5005
|
||||
ENV JAVA_OPT "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
|
||||
CMD ["/opt/nacos/bin/startup.sh", "-m", "standalone"]
|
Reference in New Issue
Block a user