-
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
ouyangkang
committed
Mar 11, 2024
1 parent
e829597
commit 4a472b9
Showing
2 changed files
with
5 additions
and
24 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,26 +1,7 @@ | ||
# FROM ghcr.io/bmrlab/muse-credits:v1.1 as github-credits | ||
FROM ghcr.io/bmrlab/muse-credits:v1.1 as github-credits | ||
|
||
# ENV start_params=" " | ||
ENV start_params=" " | ||
|
||
# EXPOSE 8080 | ||
# CMD ["sh", "-c", "/usr/app/credits-cli task ${task_params} && /usr/app/credits-cli start"] | ||
EXPOSE 8080 | ||
CMD ["sh", "-c", "/usr/app/credits-cli task ${task_params} && /usr/app/credits-cli start"] | ||
|
||
|
||
FROM rust:1.74-slim as builder | ||
|
||
WORKDIR /usr/src/ | ||
|
||
COPY . . | ||
|
||
RUN apt-get install -y libssl-dev && apt-get -y install pkg-config | ||
|
||
RUN cargo build --release | ||
|
||
FROM debian:bookworm-slim | ||
|
||
RUN apt-get update && apt-get install -y libc6 | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY --from=builder /usr/src/config /usr/app/config | ||
COPY --from=builder /usr/src/target/release/credits-cli /usr/app/credits-cli |
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