1
0
Fork 0
forked from TWS/kalkutago
kalkutago/server/Dockerfile

17 lines
475 B
Docker
Raw Normal View History

2023-06-06 10:27:02 -04:00
FROM rustlang/rust:nightly-bullseye-slim
RUN apt-get update &&\
apt-get install sqlite3 &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists
2023-06-06 10:27:02 -04:00
WORKDIR /src
ADD Cargo.toml Cargo.lock /src/
RUN echo "fn main() {}" > dummy.rs &&\
sed -i "s:src/main.rs:dummy.rs:" Cargo.toml
RUN cargo build --release
ADD src/ src/
RUN rm dummy.rs &&\
sed -i "s:dummy.rs:src/main.rs:" Cargo.toml
RUN cargo build --release
# ADD public/ public/
2023-06-06 10:27:02 -04:00
CMD ["target/release/kalkulog-server"]