mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user