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

18 lines
459 B
Docker
Raw Normal View History

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