mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Replaced rolled-own/argon2 with fastapi-users, oof
This commit is contained in:
parent
216d2ac42b
commit
6f81ef699d
14 changed files with 310 additions and 142 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,10 +1,5 @@
|
|||
FROM python:3.11-alpine
|
||||
|
||||
# argon2 needs these to build, and we need argon2 for secure password
|
||||
# hashing/salting
|
||||
RUN apk add gcc musl-dev libffi-dev
|
||||
RUN python3 -m pip install -U cffi pip setuptools
|
||||
|
||||
# Enforcement to ensure passwords environment variables are not left blank.
|
||||
# This won't stop bad passwords from being used, but at least won't cause
|
||||
# errors or, worse, weaker crypt.
|
||||
|
@ -26,17 +21,9 @@ RUN mkdir -p "${ENV_GHOSTFORGE_DATA_DIR}"
|
|||
WORKDIR /ghostforge
|
||||
COPY . .
|
||||
|
||||
# argon2 needs these to build, and we need argon2 for secure password
|
||||
# hashing/salting
|
||||
RUN apk add gcc musl-dev libffi-dev
|
||||
RUN python3 -m pip install -U cffi pip setuptools
|
||||
|
||||
# Install ghostforge from the work directory.
|
||||
RUN pip install .
|
||||
|
||||
# Reclaim space from build-time packages
|
||||
RUN apk del gcc musl-dev libffi-dev
|
||||
|
||||
# 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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue