cleanup
This commit is contained in:
parent
b7ec6a292f
commit
9297006ab3
58 changed files with 2032 additions and 2074 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -5,27 +5,27 @@ ENV SCCACHE_DIR=/build-cache
|
|||
ENV RUSTC_WRAPPER=sccache
|
||||
|
||||
WORKDIR .
|
||||
COPY ./api ./api
|
||||
COPY ./web ./web
|
||||
COPY ./libseptastic/ ./libseptastic/
|
||||
COPY ./api/assets ./assets
|
||||
COPY ./api/templates ./templates
|
||||
COPY ./web/assets ./assets
|
||||
COPY ./web/templates ./templates
|
||||
|
||||
|
||||
RUN apt -y update && apt install -y libssl-dev protobuf-compiler libc-dev sccache build-essential pkg-config
|
||||
RUN cd api && cargo build --release
|
||||
RUN cd web && cargo build --release
|
||||
|
||||
FROM debian:trixie-slim
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8080
|
||||
COPY --from=build /api/target/release/septastic_api /app/septastic_api
|
||||
COPY --from=build /api/config.yaml /app/config.yaml
|
||||
COPY api/assets /app/assets
|
||||
COPY api/templates /app/templates
|
||||
COPY --from=build /web/target/release/septastic_web /app/septastic_web
|
||||
COPY --from=build /web/config.yaml /app/config.yaml
|
||||
COPY web/assets /app/assets
|
||||
COPY web/templates /app/templates
|
||||
|
||||
RUN apt -y update && apt install -y curl
|
||||
|
||||
ENV RUST_LOG=info
|
||||
ENV EXPOSE_PORT=8080
|
||||
|
||||
ENTRYPOINT ["./septastic_api"]
|
||||
ENTRYPOINT ["./septastic_web"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue