Skip to content

Commit bc2a175

Browse files
committed
feat: create Docker config
1 parent 6a82db5 commit bc2a175

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target/
2+
Dockerfile
3+
.git
4+
.env
5+
.env.example

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM rust:1.88.0-slim-bookworm AS builder
2+
3+
WORKDIR /app
4+
5+
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/*
6+
7+
COPY . .
8+
9+
RUN cargo build --release
10+
11+
FROM debian:bookworm-slim
12+
13+
COPY --from=builder /app/target/release/rust_ogc_features_server /usr/local/bin/rust_ogc_features_server
14+
15+
WORKDIR /app
16+
17+
COPY config.toml .
18+
19+
EXPOSE 3022
20+
21+
CMD ["rust_ogc_features_server"]

0 commit comments

Comments
 (0)