Skip to content

Commit

Permalink
fix openlab-rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonggan committed Feb 20, 2024
1 parent 4105ff2 commit c67089f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM rust:latest
FROM rust as build

COPY ./ ./
RUN cargo build --release
CMD ["./target/release/openlab-rest"]
ENV PKG_CONFIG_ALLOW_CROSS 1
WORKDIR /usr/src/openlab-rest
COPY . .
RUN cargo install --path .
FROM debian
COPY /usr/local/cargo/bin/openlab-rest /usr/local/bin/openlab-rest
CMD ["openlab-rest"]

0 comments on commit c67089f

Please sign in to comment.