Skip to content

Commit 98fa2df

Browse files
authored
Merge pull request #42 from HarrisChu/add_dockerfile
Add dockerfile
2 parents 9d3ef8f + 9b714c3 commit 98fa2df

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM golang:1.20.5 as builder
2+
3+
COPY . /app/k6-plugin
4+
5+
RUN cd /app/k6-plugin \
6+
&& make build-dev
7+
8+
FROM centos:7
9+
10+
RUN yum install -y --nogpgcheck\
11+
make \
12+
git
13+
14+
COPY --from=builder /app/k6-plugin/k6 /app/k6
15+
16+
WORKDIR /app

0 commit comments

Comments
 (0)