Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tomcat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# You need to supply a TOMCAT_VERSION build argument, otherwise the build will fail
ARG TOMCAT_VERSION
FROM tomcat:$TOMCAT_VERSION

Check warning on line 3 in tomcat/Dockerfile

View workflow job for this annotation

GitHub Actions / ci (10) / Dockerize

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG tomcat:$TOMCAT_VERSION results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 3 in tomcat/Dockerfile

View workflow job for this annotation

GitHub Actions / ci (10) / Dockerize

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG tomcat:$TOMCAT_VERSION results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

### Environment Variables need to be set at build time
### TODO: this needs to be done on build ...
Expand Down Expand Up @@ -29,7 +29,8 @@
adduser --disabled-password --ingroup www-data $COMPONENT; \
chown -R $COMPONENT:www-data $CATALINA_HOME /docker/ /usr/local/share/ca-certificates/ $JAVA_HOME/lib/security/cacerts /etc/ssl/certs/ /run/secrets/; \
mkdir /docker/custom-certs/; \
chmod -R 755 $CATALINA_HOME /docker/;
chmod -R 750 $CATALINA_HOME /docker/;

RUN usermod -s /usr/sbin/nologin ubuntu
ONBUILD USER $COMPONENT
ENTRYPOINT ["/docker/tomcat_entrypoint.sh"]