quoter-init
Some checks failed
deploy / deploy (push) Failing after 3s

This commit is contained in:
2024-08-30 21:05:51 +03:00
parent d14e5457f3
commit 8e9387b95d
7 changed files with 1334 additions and 411 deletions

View File

@@ -5,8 +5,8 @@ RUN apt-get update -y && \
apt-get install -y git pkg-config make g++ libssl-dev wget && \
rustup target add x86_64-unknown-linux-gnu
RUN USER=root cargo new --bin presence
WORKDIR /presence
RUN USER=root cargo new --bin quoter
WORKDIR /quoter
COPY ./Cargo.lock ./Cargo.lock
COPY ./Cargo.toml ./Cargo.toml
@@ -20,7 +20,7 @@ RUN rm src/*.rs
COPY ./src ./src
# build for release
RUN rm ./target/release/deps/presence*
RUN rm ./target/release/deps/quoter*
RUN cargo build --release
FROM rust
@@ -28,8 +28,8 @@ FROM rust
ENV RUST_BACKTRACE=full
RUN apt-get update && apt install -y openssl libssl-dev
COPY --from=build /presence/target/release/presence .
COPY --from=build /quoter/target/release/quoter .
EXPOSE 8080
CMD ["./presence"]
CMD ["./quoter"]