Commit 1293c9d 1 parent 1c6a166 commit 1293c9d Copy full SHA for 1293c9d
File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
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
5
4
6
5
FROM golang:${GO_VERSION}-alpine as build-deployx
7
6
RUN mkdir /build
@@ -18,7 +17,5 @@ COPY deploy /build/deploy
18
17
19
18
RUN go build -o docker-deployx cmd/deployx/*
20
19
21
- FROM docker:${DOCKERD_VERSION} AS dockerd-release
22
-
20
+ FROM alpine AS shell
23
21
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,13 +3,8 @@ 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
-
11
6
variable "VERSION_TAG" {
12
- default = " 0.0.2 "
7
+ default = " 0.0.1 "
13
8
}
14
9
15
10
variable "DOCKERFILE" {
@@ -25,7 +20,7 @@ target "default" {
25
20
GO_VERSION = GO_VERSION
26
21
}
27
22
pull = true
28
- target = " dockerd-release "
23
+ target = " shell "
29
24
dockerfile = " ${ DOCKERFILE } "
30
25
output = [" type=image" ]
31
26
You can’t perform that action at this time.
0 commit comments