Skip to content

Commit 1847ad0

Browse files
committed
dockerize pla
1 parent 8be2113 commit 1847ad0

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Dockerfile

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM golang:alpine
2+
3+
RUN mkdir /app
4+
5+
WORKDIR /app
6+
7+
ENV GO15VENDOREXPERIMENT=1
8+
9+
ADD . /go/src/github.com/sschepens/pla
10+
11+
RUN apk add --update git && \
12+
cd /go/src/github.com/sschepens/pla && \
13+
go get && \
14+
go build && \
15+
mv /go/src/github.com/sschepens/pla /app/pla && \
16+
rm -fr /go/* && \
17+
rm -fr /usr/local/go && \
18+
apk del --purge git && rm -rf /var/cache/apk/*
19+
20+
ENTRYPOINT ["./pla/pla"]
21+

0 commit comments

Comments
 (0)