-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM eclipse-temurin:17-jdk-jammy
WORKDIR /app
RUN apt-get update && apt-get install -y git
RUN java --version
RUN git clone https://github.com/joosing/fireball.git
RUN cd fireball
RUN ./mvnw dependency:resolve
RUN ./mvnw clean package -DskipTests
ENTRYPOINT java -Dfile.server.root="/app/files" -Dfile.client.root="/app/files" -jar ./target/fireball-0.0.1.final.jar
# I have encountered the error "/bin/sh: 1: ./mvnw: not found" while building a docker image
# This happens when Windows OS uses "\r\n" as an internal newline in the mvnw file
# Changing the file newline to "\n" fixes the problem
# You can refer to the following GitHub issues.
# https://github.com/jhipster/jhipster-registry/pull/476
# https://github.com/jhipster/jhipster-registry/issues/377