Skip to content

Commit b0625b6

Browse files
committed
fix(docker): include cxtx in image build
1 parent de18ea0 commit b0625b6

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git
2+
.github
3+
.scratch
4+
logs
5+
target
6+
worktree
7+
8+
**/node_modules
9+
**/.next
10+
**/out
11+
12+
gateway/bin

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,21 @@ WORKDIR /app
3636
COPY Cargo.toml Cargo.lock* ./
3737
COPY server/Cargo.toml ./server/
3838
COPY clients/rust/Cargo.toml ./clients/rust/
39+
COPY cxtx/Cargo.toml ./cxtx/
3940

4041
# Create dummy sources to build dependencies
41-
RUN mkdir -p server/src clients/rust/src && \
42+
RUN mkdir -p server/src clients/rust/src cxtx/src && \
4243
echo "fn main() {}" > server/src/main.rs && \
4344
echo "pub fn dummy() {}" > clients/rust/src/lib.rs && \
45+
echo "pub fn dummy() {}" > cxtx/src/lib.rs && \
46+
echo "fn main() {}" > cxtx/src/main.rs && \
4447
cargo build --release --manifest-path server/Cargo.toml && \
45-
rm -rf server/src clients/rust/src
48+
rm -rf server/src clients/rust/src cxtx/src
4649

4750
# Copy actual source and build
4851
COPY server/ ./server/
4952
COPY clients/ ./clients/
53+
COPY cxtx/ ./cxtx/
5054
RUN touch server/src/main.rs && \
5155
cargo build --release --manifest-path server/Cargo.toml
5256

0 commit comments

Comments
 (0)