-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from ikatson/docker-2
Add docker build for linux/amd64
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM scratch | ||
|
||
## Assumes you are running this from respective context folder. | ||
COPY --chmod=755 rqbit /bin/rqbit | ||
|
||
WORKDIR /home/rqbit | ||
|
||
ENV XDG_DATA_HOME=/home/rqbit/config | ||
ENV XDG_CACHE_HOME=/home/rqbit/cache | ||
|
||
ENV RQBIT_HTTP_API_LISTEN_ADDR=0.0.0.0:3000 | ||
ENV RQBIT_TCP_LISTEN_MIN_PORT=4240 | ||
ENV RQBIT_TCP_LISTEN_MAX_PORT=4241 | ||
|
||
VOLUME /home/rqbit/config | ||
VOLUME /home/rqbit/cache | ||
VOLUME /home/rqbit/output | ||
|
||
EXPOSE 3000 | ||
EXPOSE 4240 | ||
ENTRYPOINT ["/bin/rqbit"] |