File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -20,34 +20,20 @@ ENV PATH="/opt/gradle/latest/bin:${PATH}"
20
20
# Copy the project files
21
21
COPY . .
22
22
23
- # Copy the git directory for git describe to work
24
- COPY .git .git
25
-
26
- # Initialize git and create a commit
27
- # RUN git init && \
28
- # git config --global user.email "[email protected] " && \
29
- # git config --global user.name "Docker Build" && \
30
- # git add . && \
31
- # git commit -m "Initial commit" && \
32
- # # Create a tag to ensure git describe works
33
- # git tag -a v1.0.0 -m "Version 1.0.0"
34
-
35
23
# Run gradle build with more verbose output
36
24
RUN gradle build
37
25
38
26
# Run gradle shadowJar
39
27
RUN gradle shadowJar
40
28
41
29
# Move the built jar, which is named by git describe, to r5.jar
42
- RUN GIT_DESCRIBE=$(git describe) && \
43
- mv build/libs/r5-${GIT_DESCRIBE}-all.jar r5.jar
30
+ RUN mv build/libs/r5-*-all.jar r5.jar
44
31
45
32
46
33
FROM base AS runner
47
34
WORKDIR /app
48
- COPY --from=builder /app/build/libs/ r5.jar r5.jar
35
+ COPY --from=builder /app/r5.jar r5.jar
49
36
COPY analysis.properties.docker analysis.properties
50
- RUN mkdir cache
51
37
52
38
EXPOSE 7070
53
39
CMD java -Xmx16g -cp r5.jar com.conveyal.analysis.BackendMain
You can’t perform that action at this time.
0 commit comments