Skip to content

Conversation

@comeback01
Copy link

This commit fixes several issues that prevented the application from building and running correctly inside a Docker container.

  • Update Go Version: The builder stage is updated to use golang:1.24-alpine to match the Go version specified in go.mod, fixing the build failure during go mod download.

  • Install Node.js: The nodejs package is now installed in the final Alpine image. This resolves the runtime error exec: "node": executable file not found in $PATH, which occurred when the application attempted to execute JavaScript.

  • Copy jscode directory: The jscode directory is now correctly copied to the final image, fixing the runtime error open jscode/main.js: no such file or directory.

This commit fixes several issues that prevented the application from building and running correctly inside a Docker container.

- **Update Go Version:** The builder stage is updated to use `golang:1.24-alpine` to match the Go version specified in `go.mod`, fixing the build failure during `go mod download`.

- **Install Node.js:** The `nodejs` package is now installed in the final Alpine image. This resolves the runtime error `exec: "node": executable file not found in $PATH`, which occurred when the application attempted to execute JavaScript.

- **Copy `jscode` directory:** The `jscode` directory is now correctly copied to the final image, fixing the runtime error `open jscode/main.js: no such file or directory`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant