Commit 1c6a166 1 parent e85ac02 commit 1c6a166 Copy full SHA for 1c6a166
File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
3
ARG GO_VERSION=1.20
4
+ ARG DOCKERD_VERSION=20.10.14
4
5
5
6
FROM golang:${GO_VERSION}-alpine as build-deployx
6
7
RUN mkdir /build
@@ -17,5 +18,7 @@ COPY deploy /build/deploy
17
18
18
19
RUN go build -o docker-deployx cmd/deployx/*
19
20
20
- FROM alpine AS shell
21
+ FROM docker:${DOCKERD_VERSION} AS dockerd-release
22
+
21
23
COPY --from=build-deployx /build/docker-deployx /usr/local/bin
24
+ RUN mkdir -p /usr/local/lib/docker/cli-plugins && ln -s /usr/local/bin/docker-deployx /usr/local/lib/docker/cli-plugins/docker-deployx
Original file line number Diff line number Diff line change @@ -3,8 +3,13 @@ variable "GO_VERSION" {
3
3
default = null
4
4
}
5
5
6
+ variable "DOCKERD_VERSION" {
7
+ # default ARG value set in Dockerfile
8
+ default = null
9
+ }
10
+
6
11
variable "VERSION_TAG" {
7
- default = " 0.0.1 "
12
+ default = " 0.0.2 "
8
13
}
9
14
10
15
variable "DOCKERFILE" {
@@ -20,7 +25,7 @@ target "default" {
20
25
GO_VERSION = GO_VERSION
21
26
}
22
27
pull = true
23
- target = " shell "
28
+ target = " dockerd-release "
24
29
dockerfile = " ${ DOCKERFILE } "
25
30
output = [" type=image" ]
26
31
You can’t perform that action at this time.
0 commit comments