-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 615 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 615 Bytes
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
FROM golang:1.14 AS builder
ENV APP_HOME /src
WORKDIR $APP_HOME
ENV GOPROXY https://goproxy.cn,direct
COPY go.* $APP_HOME/
RUN go mod download
COPY . .
RUN make build
# Runing environment
FROM debian:10
RUN echo \
deb http://mirrors.aliyun.com/debian buster main \
deb http://mirrors.aliyun.com/debian buster-updates main \
deb http://mirrors.aliyun.com/debian-security buster/updates main \
> /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y ca-certificates telnet procps curl
ENV APP_HOME /moreu
WORKDIR $APP_HOME
COPY --from=builder /src/build/bin/moreu /usr/local/bin