This commit is contained in:
parent
e496324049
commit
2329b80ed8
8 changed files with 1113 additions and 8 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM rust:1.68-bookworm as build
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||
RUN echo $(rustup show | head -n 1 | awk '{print $NF}') > /platform
|
||||
RUN cargo build --release --target $(cat /platform) --bin logo-generator
|
||||
RUN mv target/$(cat /platform)/release/logo-generator logo-generator
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y libcairo2-dev && rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=build /build/logo-generator /logo-generator
|
||||
EXPOSE 3000
|
||||
CMD ["/logo-generator"]
|
Loading…
Add table
Add a link
Reference in a new issue