R
Railway7mo 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
Percy7mo ago
Project ID: d462d0b1-509b-4747-9990-ee5a56c78771
luke
luke7mo ago
d462d0b1-509b-4747-9990-ee5a56c78771
MantisInABox
MantisInABox7mo ago
@luke this can happen from time to time. Give it a bit and try to do another deploy, and it should work
Brody
Brody7mo ago
what vin said + you should build in release mode, then your entrypoint should be the binary file that was previously built
luke
luke6mo 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
Brody6mo ago
haha no problem