Skip to content

Commit e937534

Browse files
docker again
1 parent 9c8381c commit e937534

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

exec.Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
# Build Stage
1+
22
FROM rust:1.79 AS build
33
WORKDIR /app
44

5-
RUN mkdir src && echo "fn main() {}" > src/main.rs
65
COPY Cargo.toml Cargo.lock ./
76
COPY tundra/Cargo.toml ./tundra/
87
COPY executor/Cargo.toml ./executor/
98
COPY tundra-cli/Cargo.toml ./tundra-cli/
9+
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+
1015
RUN cargo fetch
16+
1117
COPY . .
18+
1219
RUN cargo build --release -p executor
1320

1421
FROM debian:bookworm-slim
1522
WORKDIR /app
23+
1624
COPY --from=build /app/target/release/executor /usr/local/bin/executor
25+
1726
EXPOSE 8080
27+
1828
CMD ["executor"]

0 commit comments

Comments
 (0)