-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (30 loc) · 716 Bytes
/
Dockerfile
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
FROM golang:1.13.7-alpine AS go-builder
WORKDIR /usr/src/app
# Install build dependencies for docker-gen TODO:
RUN apk add --update \
curl \
gcc \
git \
make \
musl-dev
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /app
FROM alpine:3.10
LABEL maintainer="Arthur Petukhovsky <[email protected]> (@petuhovskiy)"
ENV DEBUG=false \
DOCKER_HOST=unix:///var/run/docker.sock
# Install packages required by the image
RUN apk add --update \
bash \
ca-certificates \
coreutils \
curl \
jq \
openssl \
docker \
&& rm /var/cache/apk/*
COPY --from=go-builder /app ./
CMD [ "./app" ]