-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM rust:1.78 AS builder | ||
WORKDIR /caravan | ||
WORKDIR /build | ||
COPY . . | ||
# RUN cargo install --path . | ||
RUN cargo build --release | ||
RUN ls -la /caravan/target/release/ | ||
|
||
FROM debian:stable-slim AS runtime | ||
COPY --from=builder /caravan/target/release/caravan /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/caravan | ||
# FROM debian:bullseye-slim | ||
# RUN apt-get update && apt-get install -y libnss3 libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev && rm -rf /var/lib/apt/lists/* | ||
# COPY --from=builder /build/target/release/caravan /usr/local/bin/ | ||
# # RUN apt-get update | ||
# # RUN apt-get install -y libnss3 | ||
# # RUN chmod +x /usr/local/bin/caravan | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/local/bin/caravan"] | ||
CMD ["/build/target/release/caravan"] |