Rename homepage to index

This commit is contained in:
Khue Doan 2020-06-22 16:25:42 +07:00
parent 35ea9f26ef
commit 5beb80b886
4 changed files with 7 additions and 7 deletions

View File

@ -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:

View File

@ -1,5 +1,5 @@
[package]
name = "homepage"
name = "index"
version = "0.1.0"
authors = ["Khue Doan <khuedoan98@gmail.com>"]
edition = "2018"

View File

@ -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" ]