fix docker
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-04-16 09:04:22 +02:00
parent 7d774db363
commit 6e138a4c94
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 19 additions and 16 deletions

View file

@ -11,8 +11,8 @@ FROM archlinux
RUN pacman -Syu --noconfirm openssl-1.1 tar xz zstd curl base-devel git rsync RUN pacman -Syu --noconfirm openssl-1.1 tar xz zstd curl base-devel git rsync
COPY --from=builder /app/target/release/pacco /pacco COPY --from=builder /app/target/release/pacco /usr/bin/pacco
WORKDIR / WORKDIR /
CMD ["/pacco", "serve", "/config.toml"] CMD ["/usr/bin/pacco", "serve", "/config.toml"]

View file

@ -56,20 +56,23 @@ async fn launch(config: String) {
..Default::default() ..Default::default()
}) })
.mount_assets() .mount_assets()
.mount("/", routes![ .mount(
routes::index_page, "/",
routes::pkg_route, routes![
routes::push::upload_pkg, routes::index_page,
routes::user::login, routes::pkg_route,
routes::user::login_post, routes::push::upload_pkg,
routes::user::account_page, routes::user::login,
routes::ui::pkg_ui, routes::user::login_post,
routes::ui::repo_ui, routes::user::account_page,
routes::user::new_api_key, routes::ui::pkg_ui,
routes::user::end_session, routes::ui::repo_ui,
routes::user::change_password, routes::user::new_api_key,
routes::user::change_password_post routes::user::end_session,
]) routes::user::change_password,
routes::user::change_password_post
],
)
.manage(config) .manage(config)
.manage(shell) .manage(shell)
.launch() .launch()