Add dockerfile
This commit is contained in:
parent
6b1c913b5d
commit
6d6bf7371b
2 changed files with 19 additions and 0 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Ignore everything
|
||||
*
|
||||
|
||||
# Only include necessary paths (This should be synchronized with `Cargo.toml`)
|
||||
!db_queries/
|
||||
!src/
|
||||
!settings.sample.yaml
|
||||
!sqlx-data.json
|
||||
!Cargo.toml
|
||||
!Cargo.lock
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM rust:alpine as builder
|
||||
COPY . .
|
||||
RUN apk add --no-cache file make musl-dev \
|
||||
&& cargo install --path . \
|
||||
&& strip /usr/local/cargo/bin/mangadex-home
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=builder /usr/local/cargo/bin/mangadex-home /usr/local/bin/mangadex-home
|
||||
CMD ["mangadex-home"]
|
Loading…
Reference in a new issue