调整auth的Dockerfile位置
This commit is contained in:
parent
f7d230f11b
commit
be3b2d1351
@ -7,7 +7,7 @@ app = FastAPI()
|
||||
@app.get("/")
|
||||
# 声明装饰器函数
|
||||
async def home():
|
||||
return {"message": "Hello World"}
|
||||
return {"message": "Hello World!"}
|
||||
|
||||
# 如果使用命令行启动,使用uvicorn 文件名:app --reload启动即可,下面命令就不用写
|
||||
# 如果写下面的命令,就不需要命令行启动了,直接用IDE运行即可
|
||||
|
||||
@ -103,7 +103,7 @@ services:
|
||||
# Auth 服务
|
||||
auth:
|
||||
build:
|
||||
context: ../backend/auth/dockerfile
|
||||
context: ../backend/auth
|
||||
dockerfile: Dockerfile
|
||||
container_name: bs-auth
|
||||
restart: always
|
||||
|
||||
Loading…
Reference in New Issue
Block a user