void-werefox-cafe/Dockerfile

27 lines
462 B
Docker
Raw Normal View History

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 .
2024-11-10 17:47:03 -06:00
RUN cargo build
ENV RUST_ADDRESS=0.0.0.0
CMD ["cargo", "run", "--release"]