Skip to content

This project provides docker image with rust and trunk install. It can be used to build yew application for nginx.

License

Notifications You must be signed in to change notification settings

osomahe/rust-trunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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:22.05 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/

About

This project provides docker image with rust and trunk install. It can be used to build yew application for nginx.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published