diff --git a/docker/Dockerfile b/docker/Dockerfile index abad55e..753201c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,6 +6,8 @@ EXPOSE 8000 ENV KASPAD_HOST_1=n.seeder1.kaspad.net:16110 ENV SQL_URI=postgresql+asyncpg://postgres:password@postgresql:5432/postgres +ARG version +ENV VERSION=$version RUN apk --no-cache add \ git \ diff --git a/server.py b/server.py index 7675585..b2e1b1c 100644 --- a/server.py +++ b/server.py @@ -18,7 +18,7 @@ app = FastAPI( title="Kaspa REST-API server", description="This server is to communicate with kaspa network via REST-API", - version="0.0.2", + version=os.getenv("VERSION", "tbd"), contact={ "name": "lAmeR1" },