Working generator & added whole site

This commit is contained in:
Thomas
2021-03-28 15:54:59 +02:00
commit 19123fa85a
82 changed files with 1785 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Build
FROM rust:alpine as generate
WORKDIR /usr/src/app
COPY . .
RUN cargo build --release
# Generate
FROM sratch as generate
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/target/release/NexusV7 /NexusV7
RUN NexusV7
# Serve
FROM nginx as serve
COPY --from=generate /usr/src/app/generated/ /usr/share/nginx/html
COPY --from=generate /usr/src/app/resources/ /usr/share/nginx/html