Fix dependencies for turn-in

This commit is contained in:
Darryl Nixon 2023-06-02 20:11:02 -07:00
parent d05141075e
commit 6889a60004
4 changed files with 11 additions and 5 deletions

View file

@ -8,7 +8,7 @@
Dockerfile
build/
**/__pycache__/
**/*.md
*.md
**/*.pyc
**/*.pyo
**/*.mo

View file

@ -21,9 +21,15 @@ RUN mkdir -p "${ENV_GHOSTFORGE_DATA_DIR}"
WORKDIR /ghostforge
COPY . .
# Install cffi dependencies for pip install.
RUN apk add --update --no-cache --virtual ghostforge_build libffi-dev musl-dev gcc
# Install ghostforge from the work directory.
RUN pip install .
# Remove cffi dependencies for space.
RUN apk del ghostforge_build
# Expose the web "serve" port specific in the environment variables.
ARG GHOSTFORGE_INTERNAL_WEB_PORT
ENV ENV_GHOSTFORGE_INTERNAL_WEB_PORT=${GHOSTFORGE_INTERNAL_WEB_PORT}

View file

@ -69,7 +69,7 @@ async def get_faker():
@gf.get("/", response_class=HTMLResponse)
async def home(request: Request, current_user=Depends(get_current_user())):
async def home(request: Request, current_user=Depends(get_current_user(optional=True))):
if current_user:
return RedirectResponse(url="/dashboard")
return RedirectResponse(url="/login")

View file

@ -10,7 +10,7 @@
<div class="column col-4">
<div class="panel">
<div class="panel-header">
<div class="panel-title">Comments</div>
<div class="panel-title">Dashboard</div>
</div>
<div class="panel-nav">
<!-- navigation components: tabs, breadcrumbs or pagination -->
@ -26,7 +26,7 @@
<div class="column col-4">
<div class="panel">
<div class="panel-header">
<div class="panel-title">Comments</div>
<div class="panel-title">TBD</div>
</div>
<div class="panel-nav">
<!-- navigation components: tabs, breadcrumbs or pagination -->
@ -42,7 +42,7 @@
<div class="column col-4">
<div class="panel">
<div class="panel-header">
<div class="panel-title">Comments</div>
<div class="panel-title">TBD</div>
</div>
<div class="panel-nav">
<!-- navigation components: tabs, breadcrumbs or pagination -->