Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Dockerfile #4645

Closed
2 tasks done
Aj7Ay opened this issue Apr 3, 2024 · 2 comments
Closed
2 tasks done

Issue with Dockerfile #4645

Aj7Ay opened this issue Apr 3, 2024 · 2 comments
Labels
area:deployment related to how uptime kuma can be deployed help

Comments

@Aj7Ay
Copy link

Aj7Ay commented Apr 3, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I was building the image from the same Dockerfile that provided in the source code
using docker buildx build -f docker/dockerfile --platform linux/amd64 -t louislam/uptime-kuma1 --target release . --load

container exists soon after restart
Screenshot 2024-04-03 at 11 53 20 AM

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.x Branch

💻 Operating System and Arch

Ubuntu 22.04

🌐 Browser

Google Chrome, Firefox

🖥️ Deployment Environment

  • Runtime:
  • Database:
  • Filesystem used to store the database on:
  • number of monitors:
@Aj7Ay Aj7Ay added the help label Apr 3, 2024
@Aj7Ay
Copy link
Author

Aj7Ay commented Apr 3, 2024

Welcome to Uptime Kuma
Your Node.js version: 18.20.0
2024-04-03T08:28:42Z [SERVER] INFO: Env: production
2024-04-03T08:28:43Z [SERVER] INFO: Uptime Kuma Version: 2.0.0-dev
2024-04-03T08:28:43Z [SERVER] INFO: Loading modules
2024-04-03T08:28:43Z [SERVER] INFO: Creating express and socket.io instance
2024-04-03T08:28:43Z [SERVER] INFO: Server Type: HTTP
2024-04-03T08:28:43Z [SERVER] ERROR: Error: Cannot find 'dist/index.html', did you install correctly?

@CommanderStorm
Copy link
Collaborator

I was building the image from the same Dockerfile that provided in the source code

What are you trying to do?
v2.0 is not yet ready for public testing.
Please see #4500 for the bugs which still remain.

If you want to test PRs, this can be done via this guide https://github.com/louislam/uptime-kuma/wiki/Test-Pull-Requests
If you want to develop the project, this can be done via the contribution guide: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

For your issue, please see

uptime-kuma/package.json

Lines 39 to 50 in 822ce53

"build-docker": "npm run build && npm run build-docker-full && npm run build-docker-slim",
"build-docker-base": "docker buildx build -f docker/debian-base.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:base2 --target base2 . --push",
"build-docker-base-slim": "docker buildx build -f docker/debian-base.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:base2-slim --target base2-slim . --push",
"build-docker-builder-go": "docker buildx build -f docker/builder-go.dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:builder-go . --push",
"build-docker-slim": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-slim -t louislam/uptime-kuma:$VERSION-slim --target release --build-arg BASE_IMAGE=louislam/uptime-kuma:base2-slim . --push",
"build-docker-full": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2 -t louislam/uptime-kuma:$VERSION --target release . --push",
"build-docker-nightly": "node ./extra/test-docker.js && npm run build && docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly2 --target nightly . --push",
"build-docker-slim-rootless": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-slim-rootless -t louislam/uptime-kuma:$VERSION-slim-rootless --target rootless --build-arg BASE_IMAGE=louislam/uptime-kuma:base2-slim . --push",
"build-docker-full-rootless": "node ./extra/env2arg.js docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:2-rootless -t louislam/uptime-kuma:$VERSION-rootless --target rootless . --push",
"build-docker-nightly-rootless": "node ./extra/test-docker.js && npm run build && docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly2-rootless --target nightly-rootless . --push",
"build-docker-nightly-local": "npm run build && docker build -f docker/dockerfile -t louislam/uptime-kuma:nightly2 --target nightly .",
"build-docker-pr-test": "docker buildx build -f docker/dockerfile --platform linux/amd64,linux/arm64 -t louislam/uptime-kuma:pr-test2 --target pr-test2 . --push",

=> you need to run this command prior. Also the command you provided has extra options and some options are missing.

npm run build

@CommanderStorm CommanderStorm added the area:deployment related to how uptime kuma can be deployed label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:deployment related to how uptime kuma can be deployed help
Projects
None yet
Development

No branches or pull requests

2 participants