feat: automatic CI
This commit is contained in:
parent
db01e0494f
commit
64b288718d
3 changed files with 31 additions and 1 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM rust:1.19 as compile
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM gcr.io/distroless/static-debian12
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=compile /build/target/release/iwakura-web /bin/server
|
||||
COPY --from=compile /build/assets /app/assets
|
||||
CMD ["/bin/server"]
|
Loading…
Add table
Add a link
Reference in a new issue