mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Fix dependencies for turn-in
This commit is contained in:
parent
d05141075e
commit
6889a60004
4 changed files with 11 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
Dockerfile
|
Dockerfile
|
||||||
build/
|
build/
|
||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
**/*.md
|
*.md
|
||||||
**/*.pyc
|
**/*.pyc
|
||||||
**/*.pyo
|
**/*.pyo
|
||||||
**/*.mo
|
**/*.mo
|
||||||
|
|
|
@ -21,9 +21,15 @@ RUN mkdir -p "${ENV_GHOSTFORGE_DATA_DIR}"
|
||||||
WORKDIR /ghostforge
|
WORKDIR /ghostforge
|
||||||
COPY . .
|
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.
|
# Install ghostforge from the work directory.
|
||||||
RUN pip install .
|
RUN pip install .
|
||||||
|
|
||||||
|
# Remove cffi dependencies for space.
|
||||||
|
RUN apk del ghostforge_build
|
||||||
|
|
||||||
# Expose the web "serve" port specific in the environment variables.
|
# Expose the web "serve" port specific in the environment variables.
|
||||||
ARG GHOSTFORGE_INTERNAL_WEB_PORT
|
ARG GHOSTFORGE_INTERNAL_WEB_PORT
|
||||||
ENV ENV_GHOSTFORGE_INTERNAL_WEB_PORT=${GHOSTFORGE_INTERNAL_WEB_PORT}
|
ENV ENV_GHOSTFORGE_INTERNAL_WEB_PORT=${GHOSTFORGE_INTERNAL_WEB_PORT}
|
||||||
|
|
|
@ -69,7 +69,7 @@ async def get_faker():
|
||||||
|
|
||||||
|
|
||||||
@gf.get("/", response_class=HTMLResponse)
|
@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:
|
if current_user:
|
||||||
return RedirectResponse(url="/dashboard")
|
return RedirectResponse(url="/dashboard")
|
||||||
return RedirectResponse(url="/login")
|
return RedirectResponse(url="/login")
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="column col-4">
|
<div class="column col-4">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<div class="panel-title">Comments</div>
|
<div class="panel-title">Dashboard</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-nav">
|
<div class="panel-nav">
|
||||||
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<div class="column col-4">
|
<div class="column col-4">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<div class="panel-title">Comments</div>
|
<div class="panel-title">TBD</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-nav">
|
<div class="panel-nav">
|
||||||
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
<div class="column col-4">
|
<div class="column col-4">
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<div class="panel-title">Comments</div>
|
<div class="panel-title">TBD</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-nav">
|
<div class="panel-nav">
|
||||||
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
<!-- navigation components: tabs, breadcrumbs or pagination -->
|
||||||
|
|
Loading…
Reference in a new issue