Skip to content

Commit

Permalink
Fixes dashboard on lh-standalone because it was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoRojas committed Jan 19, 2024
1 parent 04b60f5 commit 310566b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker/standalone/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@ COPY ./docker/standalone/dashboard-entrypoint.sh /lh
COPY ./docker/standalone/docker-entrypoint.sh /lh
COPY ./docker/standalone/log4j2.properties /lh

COPY ./dashboard /lh/dashboard
WORKDIR /lh/dashboard
ENV NODE_ENV=production
EXPOSE 8080

COPY ./dashboard/apps/web/.next/standalone ./
COPY ./dashboard/apps/web/.next/static ./apps/web/.next/static
COPY ./dashboard/apps/web/public ./apps/web/public
COPY ./docker/dashboard/docker-entrypoint.sh ./

WORKDIR /

COPY ./server/build/libs/server-*-all.jar /lh/server.jar

ENV LHD_API_HOST=localhost
ENV LHD_API_PORT=2023

ENTRYPOINT ["/lh/docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker/standalone/dashboard-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else
export AUTH_SECRET=$(uuidgen)
fi

export HOSTNAME=localhost
export HOSTNAME=0.0.0.0
export PORT=8080

node /lh/dashboard/apps/web/server.js

0 comments on commit 310566b

Please sign in to comment.