File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed
Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ docker run --rm -it \
112112If you want to test your current checkout instead of the latest published image:
113113
114114``` bash
115- docker build -f docker/local /Dockerfile -t stackdog-local .
115+ docker build -f docker/backend /Dockerfile -t stackdog-local .
116116
117117docker run --rm -it \
118118 --name stackdog-local \
@@ -202,7 +202,7 @@ for event in events {
202202docker run --rm -it -p 5000:5000 trydirect/stackdog:latest
203203
204204# Or, for the most reliable test of your current code, build and run your checkout
205- docker build -f docker/local /Dockerfile -t stackdog-local .
205+ docker build -f docker/backend /Dockerfile -t stackdog-local .
206206docker run --rm -it -p 5000:5000 stackdog-local
207207
208208# Or run backend + UI together
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ services:
22 stackdog :
33 build :
44 context : .
5- dockerfile : docker/local /Dockerfile
5+ dockerfile : docker/backend /Dockerfile
66 command : ["serve"]
77 container_name : stackdog
88 environment :
Original file line number Diff line number Diff line change 1+ FROM rust:slim-bookworm AS build
2+
3+ RUN apt-get update && \
4+ apt-get install --no-install-recommends -y musl-tools pkg-config && \
5+ rm -rf /var/lib/apt/lists/*
6+
7+ RUN rustup target add x86_64-unknown-linux-musl
8+
9+ WORKDIR /app
10+
11+ COPY Cargo.toml Cargo.lock ./
12+ COPY migrations ./migrations
13+ COPY src ./src
14+ COPY .env.sample ./.env
15+
16+ RUN cargo build --release --target x86_64-unknown-linux-musl
17+
18+ FROM debian:bookworm-slim
19+
20+ WORKDIR /app
21+
22+ RUN apt-get update && \
23+ apt-get install --no-install-recommends -y ca-certificates sqlite3 && \
24+ rm -rf /var/lib/apt/lists/* && \
25+ mkdir -p /data
26+
27+ COPY --from=build /app/target/x86_64-unknown-linux-musl/release/stackdog /app/stackdog
28+
29+ EXPOSE 5000
30+
31+ ENTRYPOINT ["/app/stackdog" ]
You can’t perform that action at this time.
0 commit comments