Sign inSign up

osomahe/rust-trunk

By osomahe

•Updated over 4 years ago

This project provides docker image with rust and trunk installed.

Image
0

278

osomahe/rust-trunk repository overview

⁠Rust + Trunk Docker image

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/

Tag summary

Content type

Image

Digest

Size

643.2 MB

Last updated

over 4 years ago

docker pull osomahe/rust-trunk:22.05