-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (44 loc) · 1.17 KB
/
Makefile
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
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
build-base:
@docker image build \
--no-cache \
--tag "dpe/base:latest" \
--file "$(shell pwd)/base/Dockerfile" \
"$(shell pwd)/base"
build-node18: build-base
@docker image build \
--no-cache \
--build-arg "NODE_VERSION=18.15.0" \
--build-arg "YARN_VERSION=1.22.19" \
--build-arg "ARCH=x64" \
--tag "dpe/node:18" \
--file "$(shell pwd)/node/Dockerfile" \
"$(shell pwd)/node"
build-node19: build-base
@docker image build \
--no-cache \
--build-arg "NODE_VERSION=19.8.1" \
--build-arg "YARN_VERSION=1.22.19" \
--build-arg "ARCH=x64" \
--tag "dpe/node:19" \
--file "$(shell pwd)/node/Dockerfile" \
"$(shell pwd)/node"
build-golang1.20: build-base
@docker image build \
--no-cache \
--build-arg "VERSION=1.20.2" \
--tag "dpe/golang:1.20" \
--file "$(shell pwd)/golang/Dockerfile" \
"$(shell pwd)/golang"
build-python3.11: build-base
@docker image build \
--no-cache \
--build-arg "VERSION=3.11.2" \
--tag "dpe/python:3.11" \
--file "$(shell pwd)/python/Dockerfile" \
"$(shell pwd)/python"