Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
89 lines (73 loc) · 1.74 KB
/
Copy pathMakefile
File metadata and controls
89 lines (73 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
NAMESPACE := wyfio
BASE_IMG := ${NAMESPACE}/ubuntu
show-base-image:
@echo "Base image: ${BASE_IMG}"
#
# base
#
base:
docker build -t ${BASE_IMG} -f base/Dockerfile.ubuntu base
#
# developing docker envs
#
python-latest:
@$(eval PY_VERSION := $(shell \
curl -sL https://api.github.com/repos/python/cpython/tags | \
jq -r ".[].name" | \
grep -Po -m 1 "^v\d+\.\d+\.\d+$$"))
@echo "Found the Latest Python Version: [${PY_VERSION}]"
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
--build-arg PYTHON_VERSION=${PY_VERSION} \
-t ${NAMESPACE}/python:latest \
-f python/Dockerfile.build \
.
python3:
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
--build-arg python_version=3 \
-t ${NAMESPACE}/python:3 \
-f python/Dockerfile \
.
go golang:
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
-t ${NAMESPACE}/golang \
-f golang/Dockerfile \
.
rust:
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
-t ${NAMESPACE}/rust \
-f rust/Dockerfile \
.
nodejs20:
# Lastest version 20.* version is:
@$(eval NODE_VERSION := $(shell \
curl -sL https://api.github.com/repos/nodejs/node/tags | \
jq -r ".[].name" | \
grep -Po -m 1 "^v20\.\d+\.\d+$$"))
# $(NODE_VERSION)
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
--build-arg node_version=${NODE_VERSION} \
-t ${NAMESPACE}/nodejs:20 \
-f nodejs/Dockerfile \
.
flutter-web: flutter
docker build \
--build-arg BASE_IMG=${NAMESPACE}/flutter-base \
-t ${NAMESPACE}/flutter-web \
-f flutter/Dockerfile.web \
.
flutter:
docker build \
--build-arg BASE_IMG=${BASE_IMG} \
-t ${NAMESPACE}/flutter-base \
-f flutter/Dockerfile .
#
# alternative base image
#
fedora:
docker build -t ${NAMESPACE}/fedora -f base/Dockerfile.fedora base
.PHONY: *