millelibri/Dockerfile

17 lines
423 B
Docker
Raw Permalink Normal View History

2023-01-07 20:40:21 +00:00
FROM node:19-bullseye as frontend
COPY . /source
RUN cd /source/frontend && npm install && npm run build
FROM rust:1.65-buster as backend
COPY . /source
COPY --from=frontend /source/frontend/dist /source/frontend/dist
RUN cd /source && cargo build --release -p zlib-searcher
FROM ubuntu:22.04
COPY --from=backend /source/target/release/zlib-searcher /zlib-searcher
CMD ["/zlib-searcher", "run", "-b", "0.0.0.0:7070"]