Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 3800c84
  • /
  • Dockerfile
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:8088e9276ff25fd54030ce7bff32b4bfc5f4f25e
directory badge
swh:1:dir:3800c84cc6252442a5cd40f4d18555d86415c24b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Dockerfile
# Options
## La version de l'application (le .jar)
ARG APP_VERSION="0.0.1-SNAPSHOT" 
## La version de gradle
ARG GRADLE_VERSION="8.7"
## La version du java-runtime
ARG JRE_VERSION="17"

# Image qui va créer le .jar
FROM gradle:${GRADLE_VERSION} AS builder

WORKDIR /app

# On copie tout ce qu'on a
COPY . /app

# Build le .jar
RUN gradle assemble

# Image qui va run le code
FROM ubuntu

# Répétition pour cette image
ARG APP_VERSION
ARG JRE_VERSION

EXPOSE 8761
WORKDIR /app

# Update + installation de la JRE-17
RUN apt update && apt upgrade -y && apt install curl openjdk-${JRE_VERSION}-jre -y

# On copie les .jar qu'on a build (todo: prendre auto que la version sans le "-plain")
COPY --from=builder /app/build/libs/gateway-${APP_VERSION}.jar .

# On transforme la ARG en ENV pour qu'on puisse l'utiliser dans l'entrypoint
ENV APP_VERSION_ENV=${APP_VERSION} 
# Lancement du .jar
ENTRYPOINT java -jar gateway-$APP_VERSION_ENV.jar

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API