2023-04-11 19:42:46 -05:00
|
|
|
FROM rust:alpine
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
RUN apk add git musl-dev
|
|
|
|
|
|
|
|
COPY public/ public/
|
|
|
|
COPY void-be/ void-be/
|
|
|
|
|
|
|
|
# We don't need all the front end directory files
|
|
|
|
RUN mkdir void-fe
|
|
|
|
COPY void-fe/src/ void-fe/src/
|
|
|
|
COPY void-fe/data/ void-fe/data/
|
|
|
|
COPY void-fe/Cargo.toml void-fe/Cargo.toml
|
|
|
|
|
|
|
|
COPY src/ src/
|
|
|
|
COPY templates/ templates/
|
|
|
|
COPY Cargo.toml .
|
|
|
|
COPY Rocket.toml .
|
2024-11-10 17:47:03 -06:00
|
|
|
COPY Cargo.lock .
|
2023-04-11 19:42:46 -05:00
|
|
|
|
2024-11-10 17:47:03 -06:00
|
|
|
RUN cargo build
|
2023-04-11 19:42:46 -05:00
|
|
|
|
|
|
|
ENV RUST_ADDRESS=0.0.0.0
|
|
|
|
|
|
|
|
CMD ["cargo", "run", "--release"]
|