🚧 port to rust

This commit is contained in:
JMARyA 2022-11-12 00:41:51 +01:00
parent e5aa247f11
commit af3a052acb
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
24 changed files with 3125 additions and 564 deletions

View file

@ -1,13 +1,13 @@
FROM python:3
FROM rust as builder
COPY requirements.txt /
COPY . /app
RUN pip3 install -r /requirements.txt
RUN cargo build --release
FROM archlinux
COPY --from=builder /app/target/release/me-site /bin/me-site
VOLUME /config
COPY src /app
RUN sed -i "s/debug=True/debug=False/" /app/main.py
CMD [ "python3", "/app/main.py" ]
CMD [ "./bin/me-site" ]