forked from rwynn/monstache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (15 loc) · 757 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
####################################################################################################
# Step 1: Build the app
####################################################################################################
FROM rwynn/monstache-builder-cache-rel5:1.0.1 AS build-app
RUN mkdir /app
WORKDIR /app
COPY . .
RUN go mod download
RUN make release
####################################################################################################
# Step 2: Copy output build file to an alpine image
####################################################################################################
FROM rwynn/monstache-alpine:3.9.3
ENTRYPOINT ["/bin/monstache"]
COPY --from=build-app /app/build/linux-amd64/monstache /bin/monstache