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
COPY --from=builder /app/target/release/pacco /pacco
COPY --from=builder /app/target/release/pacco /usr/bin/pacco
WORKDIR /
CMD ["/pacco", "serve", "/config.toml"]
CMD ["/usr/bin/pacco", "serve", "/config.toml"]

View file

@ -56,7 +56,9 @@ async fn launch(config: String) {
..Default::default()
})
.mount_assets()
.mount("/", routes![
.mount(
"/",
routes![
routes::index_page,
routes::pkg_route,
routes::push::upload_pkg,
@ -69,7 +71,8 @@ async fn launch(config: String) {
routes::user::end_session,
routes::user::change_password,
routes::user::change_password_post
])
],
)
.manage(config)
.manage(shell)
.launch()