This project provides docker image with rust and trunk installed.
278
This project provides docker image with rust and trunk install. It can be used to build yew application for nginx.
FROM osomahe/rust-trunk as builder
RUN mkdir /web
ADD Cargo.toml index.html Trunk.toml /web/
ADD src /web/src/
ADD static /web/static/
WORKDIR /web
RUN trunk build --release
FROM nginx:1.21-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /web/dist/ /usr/share/nginx/html/
Content type
Image
Digest
Size
643.2 MB
Last updated
over 4 years ago
docker pull osomahe/rust-trunk:22.05