Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore original Dockerfile as Dockerfile.release and use this for pu…
…blic releases
- Loading branch information
1 parent
0c7040c
commit 1a0e829
Showing
3 changed files
with
23 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ __pycache__ | |
.idea | ||
.coverage | ||
htmlcov | ||
icloudpd-latest-py2.py3-none-any.whl |
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,20 @@ | ||
FROM alpine:latest | ||
|
||
RUN set -xe && \ | ||
apk add --no-cache python3 && \ | ||
python3 -m ensurepip && \ | ||
rm -r /usr/lib/python*/ensurepip && \ | ||
pip3 install --upgrade pip setuptools && \ | ||
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ | ||
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ | ||
rm -r /root/.cache | ||
|
||
ARG ICLOUDPD_VERSION | ||
ADD icloudpd-latest-py2.py3-none-any.whl /tmp | ||
RUN set -xe \ | ||
&& pip install /tmp/icloudpd-latest-py2.py3-none-any.whl \ | ||
&& icloudpd --version \ | ||
&& icloud -h | head -n1 | ||
|
||
RUN adduser -D -h /home/user -u 1000 user | ||
USER user |
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