-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.click-server
More file actions
41 lines (31 loc) · 1 KB
/
Dockerfile.click-server
File metadata and controls
41 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Build stage
FROM rust:1.83-bookworm AS builder
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y \
pkg-config \
libssl-dev \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
COPY Cargo.toml Cargo.lock ./
COPY clickplanet-client/ ./clickplanet-client/
COPY clickplanet-robot/ ./clickplanet-robot/
COPY clickplanet-server/ ./clickplanet-server/
COPY clickplanet-proto/ ./clickplanet-proto/
COPY clickplanet-webapp/ ./clickplanet-webapp/
COPY clickplanet-osm/ ./clickplanet-osm/
RUN cargo build --release --bin click-server
FROM debian:bookworm-slim
WORKDIR /app
LABEL org.opencontainers.image.source https://github.com/valdo404/clickplanet-rust
RUN apt-get update && apt-get install -y \
libssl3 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/app/target/release/click-server ./
COPY countries.geojson \
tile_to_countries.json \
coordinates.json \
country_to_tiles.json \
./
ENV RUST_LOG=warn
ENTRYPOINT ["./click-server"]