Skip to content

Commit

Permalink
docker prep
Browse files Browse the repository at this point in the history
  • Loading branch information
ninelore committed Jan 1, 2024
1 parent 7686d82 commit 1b6b47a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# OS
.DS_Store

# IDE
.idea/
.vscode/

# Rust
target/
**/*.rs.bk
*.pdb
.rustfmt.toml

# Coverage
/coverage
build_rs_cov.profraw

# other
model/
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM rust:latest AS builder

WORKDIR /usr/src/chruldatabase
ADD . ./

RUN cargo build --release

FROM alpine:latest
WORKDIR /opt

COPY --from=builder /usr/src/dcs-dach-bot/target/release/chruldatabase /opt/chruldatabase

CMD ["/opt/dcs-dach-bot"]

0 comments on commit 1b6b47a

Please sign in to comment.