mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 22:44:48 +07:00
Rename homepage to index
This commit is contained in:
parent
35ea9f26ef
commit
5beb80b886
@ -7,9 +7,9 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
homepage:
|
||||
container_name: "khuedoan_homepage"
|
||||
build: ./homepage/
|
||||
index:
|
||||
container_name: "khuedoan_index"
|
||||
build: ./index/
|
||||
ports:
|
||||
- "8000:8000"
|
||||
gitea:
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "homepage"
|
||||
name = "index"
|
||||
version = "0.1.0"
|
||||
authors = ["Khue Doan <khuedoan98@gmail.com>"]
|
||||
edition = "2018"
|
@ -2,7 +2,7 @@ FROM rust:1.44.1-slim AS base
|
||||
|
||||
ENV USER=root
|
||||
|
||||
WORKDIR /usr/local/src/homepage/
|
||||
WORKDIR /usr/local/src/index/
|
||||
|
||||
RUN cargo init
|
||||
COPY ./Cargo.toml ./Cargo.toml
|
||||
@ -18,8 +18,8 @@ RUN cargo build --release --offline
|
||||
|
||||
FROM rust:1.44.1-slim
|
||||
|
||||
COPY --from=builder /usr/local/src/homepage/target/release/homepage /usr/local/bin/homepage
|
||||
COPY --from=builder /usr/local/src/index/target/release/index /usr/local/bin/index
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/homepage" ]
|
||||
ENTRYPOINT [ "/usr/local/bin/index" ]
|
Loading…
Reference in New Issue
Block a user