forked from KipData/KiteSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (16 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
26 lines (16 loc) · 709 Bytes
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
FROM rust:1.75 as builder
ADD ./src ./builder/src
ADD ./Cargo.toml ./builder/Cargo.toml
ADD ./tests/sqllogictest ./builder/tests/sqllogictest
WORKDIR /builder
RUN rustup default nightly
RUN cargo build --release
FROM debian:12.5-slim
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.list && \
echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y postgresql-client
ARG APP_SERVER=fnck_sql
WORKDIR /fnck_sql
EXPOSE 5432
COPY --from=builder /builder/target/release/${APP_SERVER} ${APP_SERVER}
ENTRYPOINT ["./fnck_sql", "--ip", "0.0.0.0"]