client: Dockerfiles: remote: root: update multi-stage
Parses out build stage into separate build target.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
FROM archlinux:base-devel AS base-devel
|
||||
FROM archlinux:base-devel AS root-build
|
||||
|
||||
RUN pacman -Syu \
|
||||
git \
|
||||
@@ -85,9 +85,9 @@ RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -s --noc
|
||||
# Production stage
|
||||
#
|
||||
|
||||
FROM archlinux:base
|
||||
FROM archlinux:base AS root
|
||||
|
||||
COPY --from=base-devel /home/builder/root/root-*.pkg.tar.zst /root/
|
||||
COPY --from=root-build /home/builder/root/root-*.pkg.tar.zst /root/
|
||||
|
||||
RUN pacman -Syu \
|
||||
gcc \
|
||||
|
||||
@@ -20,6 +20,16 @@ services:
|
||||
image: evergreencrypto/root:archlinux
|
||||
container_name: evergreencrypto_root_archlinux
|
||||
build:
|
||||
context: .
|
||||
target: root
|
||||
dockerfile: Dockerfile.archlinux
|
||||
|
||||
archlinux-build:
|
||||
image: evergreencrypto/root:archlinux-build
|
||||
container_name: evergreencrypto_root_archlinux-build
|
||||
build:
|
||||
context: .
|
||||
target: root-build
|
||||
dockerfile: Dockerfile.archlinux
|
||||
|
||||
# vim: sw=2 sts=2 si ai et
|
||||
|
||||
Reference in New Issue
Block a user