| 1 |
FROM library/ubuntu:16.04 |
| 2 |
# For maximum AppImage compatibility, build on the oldest Linux distribution |
| 3 |
# that still receives security updates from its manufacturer. |
| 4 |
COPY buildscripts/packaging/Linux+BSD/portable/Recipe /Recipe |
| 5 |
RUN bash -ex Recipe |
| 6 |
# Note that each additional ADD, RUN or COPY command creates a new "layer" |
| 7 |
# (i.e. an intermediate Docker image). Any clean-up steps after a RUN command |
| 8 |
# must be done as part of that same command, like this: |
| 9 |
# |
| 10 |
# RUN command \ |
| 11 |
# && clean-up-command # creates single clean layer |
| 12 |
# |
| 13 |
# Or if `command` is a script, clean-up could be done as part of that script. |
| 14 |
# |
| 15 |
# Avoid doing this: |
| 16 |
# |
| 17 |
# RUN command # creates dirty layer |
| 18 |
# RUN clean-up-command # creates clean layer |
| 19 |
# |
| 20 |
# This is like reverting a bad commit: you can't see the dirtiness any more, |
| 21 |
# but it's still in the history and still takes up space on your hard drive. |