Skip to content

Instantly share code, notes, and snippets.

@cizixs
Last active May 3, 2017 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cizixs/976f1a5efc50eadbd7a7076b896448db to your computer and use it in GitHub Desktop.
Save cizixs/976f1a5efc50eadbd7a7076b896448db to your computer and use it in GitHub Desktop.
Dockerfile Best Practice
FROM busybox
ADD test.dat /
chmod +x /test.dat
@cloverstd
Copy link

FROM alpine
RUN wget http://example.com/test.dat -o /test.dat && \
    chmod +x /test.dat

@cizixs
Copy link
Author

cizixs commented May 3, 2017

@cloverstd 谢谢评论,文章已经更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment