Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker compose: additional property dockerfile_inline is not allowed

services.tomcat.build Additional property dockerfile_inline is not allowed.

version: "3"
services:

  tomcat:
    container_name: tomcat
    build:
      context: .
      dockerfile_inline: |
        FROM tomcat:9.0.73-jdk11-corretto-al2
        COPY example.war /var/local/tomcat/webapps/
      
    ports:
      - "8080:8080"
like image 771
eastwater Avatar asked Mar 08 '26 18:03

eastwater


1 Answers

looks like this feature not supported yet (or you need something very fresh)

https://github.com/docker/compose/releases/tag/v2.17.0

enter image description here

like image 75
Ryabchenko Alexander Avatar answered Mar 11 '26 06:03

Ryabchenko Alexander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!