-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3986de5
commit f3d1ad8
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM golang:alpine3.13 as builder | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk --no-cache --update add git make | ||
|
||
WORKDIR /go/src/github.com/Aldiwildan77/rust-updater | ||
|
||
COPY . . | ||
|
||
RUN go mod download && \ | ||
go build -v -o engine && \ | ||
chmod +x engine | ||
|
||
## Distribution | ||
FROM alpine:latest | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk --no-cache --update add ca-certificates tzdata && \ | ||
mkdir /app && mkdir rust-updater | ||
|
||
WORKDIR /rust-updater | ||
|
||
EXPOSE 8000 | ||
|
||
COPY --from=builder /go/src/github.com/Aldiwildan77/rust-updater/engine /app | ||
|
||
CMD /app/engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters