diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d92138 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Build stage +FROM rust:latest AS builder +WORKDIR /usr/src/app +COPY . . +RUN cargo build --release + +# Run stage +FROM debian:bookworm-slim +RUN apt-get update && apt-get install -y libssl3 ca-certificates && apt-get clean +COPY --from=builder /usr/src/app/Neighborhood_Map_Atlas_Neighborhoods.geojson / +COPY --from=builder /usr/src/app/map.html / +COPY --from=builder /usr/src/app/target/release/mapbattle /usr/local/bin/mapbattle +EXPOSE 8080 +CMD ["mapbattle"] \ No newline at end of file diff --git a/map.html b/map.html index a54d708..f5b04f3 100644 --- a/map.html +++ b/map.html @@ -5,23 +5,75 @@
+