dioxus-letter-werefox-cafe/Dockerfile

27 lines
546 B
Docker
Raw Permalink Normal View History

FROM rust:alpine
WORKDIR /usr/src/app
RUN apk add git musl-dev
COPY data/ data/
COPY public/ public/
COPY rust-letter-be/ rust-letter-be/
# We don't need all the front end directory files
RUN mkdir rust-letter-fe
COPY rust-letter-fe/src/ rust-letter-fe/src/
COPY rust-letter-fe/Cargo.toml rust-letter-fe/Cargo.toml
COPY src/ src/
COPY templates/ templates/
COPY Cargo.toml .
COPY Rocket.toml .
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
ENV RUST_ADDRESS=0.0.0.0
ENV RUST_PORT=3469
CMD ["cargo", "run", "--release"]