Fixed the build error because windows WSL in ubuntu version 22.04

This commit is contained in:
YuCheng Hu 2023-08-28 17:48:57 -04:00
parent d2e2f54722
commit 4b4adb2cf5
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
FROM ubuntu:20.10
FROM ubuntu:22.04
WORKDIR /usr/src/app
# Comment next line out for Windows builds
ARG DEBIAN_FRONTEND=noninteractive
#ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y wget openjdk-8-jdk curl pip maven docker-compose
# Needed for Windows builds
#RUN update-java-alternatives -s java-1.8.0-openjdk-amd64
RUN update-java-alternatives -s java-1.8.0-openjdk-amd64
CMD sh /usr/src/app/docker/scripts/build.sh