Create simple dockerfile

This commit is contained in:
SeanOMik 2022-06-29 17:52:39 -04:00
parent 7311645b45
commit 49535b94c4
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 26 additions and 5 deletions

1
.dockerignore Symbolic link
View File

@ -0,0 +1 @@
.gitignore

10
.gitignore vendored
View File

@ -1,7 +1,7 @@
/target
.vscode
**/target
**/.vscode
# Debug related directories that we don't want included
/torrents*
/output
config.toml
**/torrents*
**/output
**/config.toml

20
dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM rust:alpine
ENV USER=cross-seed
ENV GROUP=cross-seed
ENV UID=1000
ENV GID=1000
# Add user
RUN addgroup -g $GID $GROUP && \
adduser -D -u $UID --ingroup "$GROUP" "$USER"
RUN apk add --no-cache musl-dev openssl-dev
COPY --chown=UID:GID ./ /app
WORKDIR /app
RUN cargo install --path .
USER $USER
ENTRYPOINT [ "cross-seed" ]