Skip to content

Commit

Permalink
Docker I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
frc4533-lincoln committed Jun 13, 2024
1 parent be846a0 commit 989212a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM rust:alpine as builder

WORKDIR /usr/src/searched
COPY . .

RUN apk add --no-cache -U musl-dev openssl-dev
RUN cargo build --release

FROM alpine:latest

COPY --from=builder /usr/src/searched/target/release/searched /usr/local/bin/searched/searched
COPY --from=builder /usr/src/searched/views /usr/local/bin/searched/views

WORKDIR /usr/local/bin/searched
CMD ["./searched"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
searched:
build: ./
restart: unless-stopped
container_name: "searched"
ports:
- "3000:6969"
volumes:
- "./data/index:/usr/local/bin/searched/searched-index"
- "./data/db:/usr/local/bin/searched/searched-db"

0 comments on commit 989212a

Please sign in to comment.