feat: Created my personal website Shell

This commit is contained in:
2024-11-18 17:58:55 -07:00
parent 0b793c6364
commit 192ddac1da
8 changed files with 411 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM rust:latest AS builder
WORKDIR /usr/src/clash
COPY . .
RUN cargo build --release
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
ttyd \
bash \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/clash/target/release/clash /bin/alexjclarke/clash
RUN useradd aclarke
USER aclarke
WORKDIR /home/aclarke
ENV TERM=xterm
CMD ["/bin/ttyd", "--max-clients", "5", "--writable", "--port", "8080", "/bin/alexjclarke/clash"]
EXPOSE 8080