Skip to content

Commit

Permalink
Update Dockerfile -- see #412
Browse files Browse the repository at this point in the history
  • Loading branch information
enridaga committed Oct 25, 2023
1 parent 624d23a commit 2a2a4f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ADD sparql-anything-yaml/pom.xml $HOME/sparql-anything-yaml/

RUN mvn verify clean --fail-never
ADD . $HOME
RUN mvn clean install -DskipTests -Dgenerate-server-jar=true -Drevision=$GITHUB_REF
RUN mvn clean install -DskipTests -Dgenerate-server-jar=true -Dgenerate-cli-jar=true -Drevision=$GITHUB_REF

#### runtime layer
FROM mcr.microsoft.com/playwright/java:focal
Expand All @@ -49,11 +49,12 @@ WORKDIR $HOME
RUN mkdir $HOME/artifacts
COPY --from=build $HOME/sparql-anything-fuseki/target/sparql-anything-server-$GITHUB_REF.jar $HOME/sparql-anything-server.jar
COPY --from=build $HOME/sparql-anything-fuseki/target/sparql-anything-server-$GITHUB_REF.jar $HOME/artifacts/
COPY --from=build $HOME/sparql-anything-cli/target/sparql-anything-$GITHUB_REF.jar $HOME/artifacts/

RUN chown -R 10001:0 $HOME && chmod -R og+rwx $HOME
USER 10001

VOLUME /data
EXPOSE 3000

CMD java -jar /app/sparql-anything-server.jar
CMD java -jar /app/sparql-anything-server.jar

1 comment on commit 2a2a4f2

@MathiasVDA
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! 😁

Please sign in to comment.