Help with Rocket v0.5.0-rc.2 and Docker #2257
-
Excuse me if I'm doing something stupid (this is my first Docker project, and I'm fairly new to rust) I'm having an issue getting Rocket 5 rc.2 working with Docker. When running the container, I don't get any output whatsoever and it doesn't seem to be working at all. See below for my setup: main.rs
Cargo.toml
Rocket.toml
Dockerfile
Docker commands
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Solution from reddit user that worked. The Rocket.toml file must be copied over to the final container with the binary. Working Dockerfile
|
Beta Was this translation helpful? Give feedback.
-
@physics515 did you encounter any issues with mounting the static files? |
Beta Was this translation helpful? Give feedback.
Solution from reddit user that worked.
The Rocket.toml file must be copied over to the final container with the binary.
Working Dockerfile