Merge pull request #13433 from nuwang/add_docker_version_json

Add version.json for exposing extra api information about docker container
This commit is contained in:
Marius van den Beek
2022-02-24 13:34:44 +01:00
committed by GitHub
+4
View File
@@ -176,6 +176,10 @@ COPY --chown=$GALAXY_USER:$GALAXY_USER --from=server_build $ROOT_DIR .
COPY --chown=$GALAXY_USER:$GALAXY_USER --from=client_build $SERVER_DIR/static ./server/static
WORKDIR $SERVER_DIR
# The data in version.json will be displayed in Galaxy's /api/version endpoint
RUN printf "{\n \"git_commit\": \"$(cat GITREVISION)\",\n \"build_date\": \"$BUILD_DATE\",\n \"image_tag\": \"$IMAGE_TAG\"\n}\n" > version.json
EXPOSE 8080
USER $GALAXY_USER