Skip to content

Commit

Permalink
modify dockerfile 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyangkang committed Mar 11, 2024
1 parent e829597 commit 4a472b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
27 changes: 4 additions & 23 deletions Dockerfile
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
2 changes: 1 addition & 1 deletion Dockerfile.gitlab
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /usr/src/

COPY . .

RUN apt-get install -y libssl-dev && apt-get -y install pkg-config
RUN apt-get update && apt-get install -y libssl-dev pkg-config

RUN cargo build --release

Expand Down

0 comments on commit 4a472b9

Please sign in to comment.