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
|
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"]
|
||||||
|
|
|
@ -56,7 +56,9 @@ async fn launch(config: String) {
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.mount_assets()
|
.mount_assets()
|
||||||
.mount("/", routes![
|
.mount(
|
||||||
|
"/",
|
||||||
|
routes![
|
||||||
routes::index_page,
|
routes::index_page,
|
||||||
routes::pkg_route,
|
routes::pkg_route,
|
||||||
routes::push::upload_pkg,
|
routes::push::upload_pkg,
|
||||||
|
@ -69,7 +71,8 @@ async fn launch(config: String) {
|
||||||
routes::user::end_session,
|
routes::user::end_session,
|
||||||
routes::user::change_password,
|
routes::user::change_password,
|
||||||
routes::user::change_password_post
|
routes::user::change_password_post
|
||||||
])
|
],
|
||||||
|
)
|
||||||
.manage(config)
|
.manage(config)
|
||||||
.manage(shell)
|
.manage(shell)
|
||||||
.launch()
|
.launch()
|
||||||
|
|
Loading…
Add table
Reference in a new issue