Skip to content

Commit

Permalink
versioning via ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
lAmeR1 committed Feb 8, 2023
1 parent d119e76 commit 99fd543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 99fd543

Please sign in to comment.