v86/tools/docker/exec/build.sh
Progyan Bhattacharya 9679e2c00a
(feat) Docker: Add Support for Running inside Docker Container (#501)
* (feat) Docker: Add Support for Running inside Docker Container

Uses Alpine image as base to have minimal size. 2-step build process to get rid of source and library files after compilation and during runtime. Uses Python3 HTTP Server to serve static assets.

Signed-off-by: Progyan Bhattacharya <bprogyan@gmail.com>
2021-07-24 15:07:14 +02:00

5 lines
222 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
tar -cf - ../../../{*.html,*.js,*.css,gen,lib,src,bios,.cargo,Cargo.toml,Makefile,tools} | \
docker build -t v86:alpine-3.14 -f tools/docker/exec/Dockerfile -