🚧 port to rust
This commit is contained in:
parent
e5aa247f11
commit
af3a052acb
24 changed files with 3125 additions and 564 deletions
16
Dockerfile
16
Dockerfile
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue