Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
innovarew committed Feb 1, 2024
1 parent 574d190 commit 9345081
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# @description Makefile, for building innovarew/docker-tinycore
# @author innovarew <innovarew at github.com> (c) Copyright 2022
# @url github.com/innovarew/docker-tinycore
#

# Set tinycore release
TC_URL=http://tinycorelinux.net/14.x/x86_64/
TC_VER=$(shell echo "${TC_URL}" | awk -F/ '{print $$4"-"$$5}')
Expand All @@ -7,6 +13,6 @@ all: rootfs build run
rootfs:
scripts/tc-docker tce_rootfs_init
build:
docker build --build-arg TC_VER=${TC_VER} -t tinycore:${TC_VER} -t tinycore:latest .
docker build --build-arg TC_VER=${TC_VER} -t tinycore:${TC_VER} -t docker-tinycore-local:latest .
run:
docker run -it tinycore:latest /bin/sh
docker run -it docker-tinycore-local:latest /bin/sh

0 comments on commit 9345081

Please sign in to comment.