This commit is contained in:
Ada Werefox 2024-11-11 16:05:20 -06:00
parent baa17a769e
commit 7599a1acbc
2 changed files with 10 additions and 16 deletions

View File

@ -2,24 +2,18 @@ FROM rust:alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN apk add git musl-dev RUN apk add --update musl-dev openssl openssl-dev
COPY public/ public/ COPY public/ public/
COPY void-be/ void-be/ COPY data/ data/
# 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 src/ src/
COPY templates/ templates/
COPY Cargo.toml . COPY Cargo.toml .
COPY Rocket.toml . COPY Cargo.lock .
COPY Dioxus.toml .
COPY access_token.key .
RUN cargo install --config "net.git-fetch-with-cli=true" --path . ENV OPENSSL_NO_VENDOR=1
RUN cargo fetch && cargo install dioxus-cli --locked
RUN dx build --release
ENV RUST_ADDRESS=0.0.0.0 CMD ["dx", "serve", "--release"]
CMD ["cargo", "run", "--release"]

View File

@ -7,4 +7,4 @@ services:
build: build:
context: . context: .
ports: ports:
- "8345:8345" - "8080:8345"