We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c8381c commit e937534Copy full SHA for e937534
1 file changed
exec.Dockerfile
@@ -1,18 +1,28 @@
1
-# Build Stage
+
2
FROM rust:1.79 AS build
3
WORKDIR /app
4
5
-RUN mkdir src && echo "fn main() {}" > src/main.rs
6
COPY Cargo.toml Cargo.lock ./
7
COPY tundra/Cargo.toml ./tundra/
8
COPY executor/Cargo.toml ./executor/
9
COPY tundra-cli/Cargo.toml ./tundra-cli/
10
+RUN mkdir -p tundra/src executor/src tundra-cli/src && \
11
+ echo "fn main() {}" > tundra/src/main.rs && \
12
+ echo "fn main() {}" > executor/src/main.rs && \
13
+ echo "fn main() {}" > tundra-cli/src/main.rs
14
15
RUN cargo fetch
16
17
COPY . .
18
19
RUN cargo build --release -p executor
20
21
FROM debian:bookworm-slim
22
23
24
COPY --from=build /app/target/release/executor /usr/local/bin/executor
25
26
EXPOSE 8080
27
28
CMD ["executor"]
0 commit comments