R
Railway13mo ago
luke

"We failed to create a container for this image."

Got a Dockerfile that builds fine on my local machine, but for some reason the container can't be built / uploaded through Railway. Dockerfile is pretty simple:
FROM rust:1.74-slim-buster
RUN apt-get update && apt-get install -y openssl pkg-config libssl-dev clang libclang-dev
WORKDIR /app
COPY . .
RUN cargo build
ENTRYPOINT ["cargo run"]
FROM rust:1.74-slim-buster
RUN apt-get update && apt-get install -y openssl pkg-config libssl-dev clang libclang-dev
WORKDIR /app
COPY . .
RUN cargo build
ENTRYPOINT ["cargo run"]
Please let me know what other info may be helpful! Thanks in advance!
No description
6 Replies
Percy
Percy13mo ago
Project ID: d462d0b1-509b-4747-9990-ee5a56c78771
luke
lukeOP13mo ago
d462d0b1-509b-4747-9990-ee5a56c78771
MantisInABox
MantisInABox13mo ago
@luke this can happen from time to time. Give it a bit and try to do another deploy, and it should work
Brody
Brody12mo ago
what vin said + you should build in release mode, then your entrypoint should be the binary file that was previously built
luke
lukeOP12mo ago
holy shit you guys just now seeing y'all's response -- issue had resolved itself but @Brody thank you so much for pointing that out you just sped up execution times significantly hahahaha
Brody
Brody12mo ago
haha no problem
Want results from more Discord servers?
Add your server