title: Build docker error /bin/sh: 1: ./mvnw: not found
body: <p>I try to build maven project using dockerfile, but i got this error when i use command <code>docker build</code> </p>
  
  <pre><code>/bin/sh: 1: ./mvnw: not found
  </code></pre>
  
  <p>i had try this solution : 
  <a href="https://stackoverflow.com/questions/52748640/unable-to-run-mvnw-clean-install-when-building-docker-image-based-on-openjd/52748878">Unable to run &#39;./mvnw clean install&#39; when building docker image based on &quot;openjdk:8-jdk-alpine&quot; for Spring Boot app</a></p>
  
  <p>but still got error.</p>
  
  <p>Here is my dockerfile </p>
  
  <pre><code># Stage 1 Build the Spring Project into a jar file
  FROM openjdk:8-slim as builder
  RUN mkdir src
  COPY . /src
  WORKDIR /src
  RUN chmod 700 mvnw &amp;&amp; ./mvnw clean install package  ==&gt;error on this line
  
  # Stage 2 Run the jar file from previous build
  FROM openjdk:8-jdk-alpine
  RUN addgroup -S spring &amp;&amp; adduser -S spring -G spring
  USER spring:spring
  COPY --from=builder /src/target /build
  WORKDIR /build
  EXPOSE 80
  EXPOSE 5001
  ENTRYPOINT ["java", "-jar", "tax-0.0.1-SNAPSHOT.jar"]
  </code></pre>
  
  <p>Am i missing something?
  I would be glad for any help.</p>