Update
This commit is contained in:
parent
a177f2a5d4
commit
027aad58f9
6 changed files with 110 additions and 90 deletions
|
@ -12,9 +12,9 @@ RUN cargo chef prepare --recipe-path recipe.json
|
|||
FROM chef as builder
|
||||
WORKDIR /usr/src/backend
|
||||
COPY --from=planner /usr/src/backend/recipe.json .
|
||||
RUN cargo chef cook --release --recipe-path recipe.json
|
||||
RUN cargo chef cook --recipe-path recipe.json
|
||||
COPY ./src ./src
|
||||
RUN cargo build --release
|
||||
RUN cargo build
|
||||
|
||||
FROM docker.io/debian:bullseye-slim as runner
|
||||
RUN apt update
|
||||
|
@ -29,6 +29,6 @@ WORKDIR /usr/src/backend
|
|||
COPY ./run.sh .
|
||||
RUN chmod +x ./run.sh
|
||||
COPY ./migrations ./migrations
|
||||
COPY --from=builder /usr/src/backend/target/release/api /usr/src/backend/target/release/worker ./bin/
|
||||
COPY --from=builder /usr/src/backend/target/debug/api /usr/src/backend/target/debug/worker ./bin/
|
||||
EXPOSE 80
|
||||
ENTRYPOINT [ "./run.sh" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue