mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-04 13:46:34 +08:00
fix(docker): Allow to self-host without firebase config (@fehmer) (#6685)
fixes #6505
This commit is contained in:
parent
64322a2ed1
commit
afbff1bcf6
3 changed files with 6 additions and 3 deletions
|
@ -16,6 +16,8 @@ export function init(): void {
|
|||
Logger.warning(
|
||||
"Firebase service account key not found! Continuing in dev mode, but authentication will throw errors."
|
||||
);
|
||||
} else if (process.env["BYPASS_FIREBASE"] === "true") {
|
||||
Logger.warning("BYPASS_FIREBASE is enabled! Running without firebase.");
|
||||
} else {
|
||||
throw new MonkeyError(
|
||||
500,
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
From root directoy:
|
||||
|
||||
```
|
||||
docker build --progress=plain --no-cache -t monkeytype/monkeytype-backend:latest . -f ./docker/backend/Dockerfile
|
||||
docker build --progress=plain --no-cache -t monkeytype/monkeytype-frontend:latest . -f ./docker/frontend/Dockerfile
|
||||
docker buildx build --progress=plain --no-cache -t monkeytype/monkeytype-backend:latest . -f ./docker/backend/Dockerfile
|
||||
docker buildx build --progress=plain --no-cache -t monkeytype/monkeytype-frontend:latest . -f ./docker/frontend/Dockerfile
|
||||
```
|
|
@ -40,10 +40,11 @@ COPY ["docker/backend/entry-point.sh", "./"]
|
|||
|
||||
RUN echo "${server_version}" > /app/backend/dist/server.version
|
||||
|
||||
#run in prod mode, but don't require anti-cheat or email client
|
||||
#run in prod mode, but don't require anti-cheat, email client or firebase
|
||||
ENV MODE=prod
|
||||
ENV BYPASS_ANTICHEAT=true
|
||||
ENV BYPASS_EMAILCLIENT=true
|
||||
ENV BYPASS_FIREBASE=true
|
||||
|
||||
EXPOSE 5005
|
||||
USER node
|
||||
|
|
Loading…
Add table
Reference in a new issue