generated from totoval/totoval
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (24 loc) · 1.16 KB
/
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
FROM golang:1.13-alpine AS builder
MAINTAINER Totoval <[email protected]> (https://totoval.com)
LABEL "com.github.actions.name"="Go Release Binary"
LABEL "com.github.actions.description"="Automate publishing Totoval build artifacts for GitHub releases"
LABEL "com.github.actions.icon"="cpu"
LABEL "com.github.actions.color"="blue"
LABEL "name"="Automate publishing Totoval build artifacts for GitHub releases through GitHub Actions"
LABEL "version"="1.0.0"
LABEL "repository"="http://github.com/totoval/go-release.action"
LABEL "homepage"="https://totoval.com"
LABEL "maintainer"="Totoval <[email protected]> (https://totoval.com)"
ENV GO111MODULE on
ADD . /src
WORKDIR /src
RUN go mod download
RUN go build -o ./builds/artisan ./artisan.go
# ===================================================================================
FROM golang:1.13-alpine
MAINTAINER Totoval <[email protected]> (https://totoval.com)
LABEL "maintainer"="Totoval <[email protected]> (https://totoval.com)"
COPY --from=builder /src/builds/artisan /sms/sms-forwarder
COPY --from=builder /src/.env.example.json /sms/.env.json
WORKDIR /sms
ENTRYPOINT ["/sms/sms-forwarder", "sms:read", "/dev/ttyUSB0"]