Skip to content

Commit

Permalink
test: docker rust image only
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed May 27, 2024
1 parent dac1794 commit a530903
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
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"]

0 comments on commit a530903

Please sign in to comment.