Please if someone has an idea to resolve the following issue:
I have the following message in Windows Server 2019 when I run docker-compose build.
Actually, this operation works ok in windows 10 with the same files (Docker file and docker-compose.yml).
The files are:
PS C:\Users\ghoyos\FTP_m> cat .\docker-compose.yml
version: ‘3’
services:
lb:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- “9090:9090”
depends_on:
- service1
- service2
service1:
build:
context: .
dockerfile: Dockerfile
ports:
- “8181:8080”
service2:
build:
context: .
dockerfile: Dockerfile
ports:
- “8282:8080”
PS C:\Users\ghoyos\FTP_m> cat Dockerfile
For Java 11, try this
FROM adoptopenjdk/openjdk11:alpine-jre
Refer to Maven build -> finalName
ARG JAR_FILE=app/sb-api-cliente.jar
cd /opt/app
WORKDIR /opt/app
cp app/sb-api-cliente.jar /opt/app/app.jar
COPY ${JAR_FILE} app.jar
java -jar /opt/app/app.jar
ENTRYPOINT [“java”,"-jar",“app.jar”]
PS C:\Users\ghoyos\FTP_m>