-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c513ab
commit 1f81f02
Showing
9 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# trunk-ignore-all(checkov/CKV_DOCKER_3) | ||
FROM node:20.11.1-alpine | ||
|
||
LABEL org.opencontainers.image.source="https://github.com/MeshAddicts/meshinfo" | ||
LABEL org.opencontainers.image.description="Realtime web UI to run against a Meshtastic regional or private mesh network." | ||
|
||
COPY . . | ||
|
||
WORKDIR /frontend | ||
|
||
ENV NODE_ENV=dev | ||
|
||
RUN corepack enable | ||
RUN yarn | ||
|
||
EXPOSE 5173 | ||
|
||
CMD ["/frontend/scripts/run-frontend.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
echo "NODE_ENV: " $NODE_ENV | ||
echo "API BASE URL: " $VITE_API_BASE_URL | ||
yarn build --base=/next/ && npx pm2-runtime /frontend/scripts/server.js | ||
|
||
if [ "$NODE_ENV" == "dev" ]; then | ||
yarn run dev --host 0.0.0.0 | ||
else | ||
yarn build --base=/next/ && npx pm2-runtime /frontend/scripts/server.js | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters