This commit is contained in:
parent
7d774db363
commit
6e138a4c94
2 changed files with 19 additions and 16 deletions
|
@ -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"]
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue