Skip to content

Commit

Permalink
fix maven build
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Carlson committed Jun 14, 2022
1 parent 8c99b13 commit ece907a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ COPY --chown=dataverse:dataverse src /dataverse/src/
COPY --chown=dataverse:dataverse modules /dataverse/modules/
COPY --chown=dataverse:dataverse scripts /dataverse/scripts/
COPY --chown=dataverse:dataverse conf/jhove/ /dataverse/conf/jhove/
COPY --chown=dataverse:dataverse local_lib /dataverse/local_lib/

# this likely isn't needed on Linux but was needed on a Windows build
RUN find /dataverse -type f -print0 | xargs -0 -n 1 -P 4 dos2unix
Expand All @@ -71,7 +72,7 @@ RUN find /dataverse -type f -print0 | xargs -0 -n 1 -P 4 dos2unix
RUN cd /dataverse/ && \
export dpkgArch="$(dpkg --print-architecture)" && \
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-${dpkgArch}" && \
mvn package -DskipTests
mvn package -DskipTests --no-transfer-progress

USER root
COPY --chown=dataverse:dataverse ./conf/docker-compose/dataverse/startup.sh /startup.sh
Expand Down

0 comments on commit ece907a

Please sign in to comment.