Create simple dockerfile
This commit is contained in:
parent
7311645b45
commit
49535b94c4
|
@ -0,0 +1 @@
|
||||||
|
.gitignore
|
|
@ -1,7 +1,7 @@
|
||||||
/target
|
**/target
|
||||||
.vscode
|
**/.vscode
|
||||||
|
|
||||||
# Debug related directories that we don't want included
|
# Debug related directories that we don't want included
|
||||||
/torrents*
|
**/torrents*
|
||||||
/output
|
**/output
|
||||||
config.toml
|
**/config.toml
|
|
@ -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" ]
|
Loading…
Reference in New Issue