Saataa andagii !
This commit is contained in:
commit
8ce5844c3b
23 changed files with 421 additions and 0 deletions
18
dockerfile
Normal file
18
dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:latest AS front
|
||||
WORKDIR /app
|
||||
COPY front .
|
||||
RUN npm i && npm run build
|
||||
|
||||
FROM rust:latest AS back
|
||||
WORKDIR /app
|
||||
COPY back .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
WORKDIR /app
|
||||
RUN apt-get update & apt-get install -y extra-runtime-dependencies & rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=front /app/dist /app/public
|
||||
COPY --from=back /app/target/release/back /app/back
|
||||
EXPOSE 8080
|
||||
CMD ["/app/back"]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue