Skip to content

Commit a1b97a6

Browse files
committed
fix: added opens to bypass the security restrictions in Java 17
1 parent b6b1b7c commit a1b97a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.devcontainer/development/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM openjdk:17-jdk-slim
33
# Set environment variables for Tomcat
44
ENV CATALINA_HOME /usr/local/tomcat
55
ENV PATH $CATALINA_HOME/bin:$PATH
6+
ENV CATALINA_OPTS="--add-opens java.base/java.net=ALL-UNNAMED"
67

78
# Copy Tomcat installation from the official Tomcat image
89
COPY --from=tomcat:9.0.97 /usr/local/tomcat $CATALINA_HOME

0 commit comments

Comments
 (0)