-
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
Ramon Quitales
committed
Mar 21, 2020
1 parent
3680068
commit 7ab20de
Showing
2 changed files
with
24 additions
and
0 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,14 @@ | ||
# Copyright (c) 2020 Ramon Quitales | ||
# | ||
# This software is released under the MIT License. | ||
# https://opensource.org/licenses/MIT | ||
|
||
FROM golang:1.14.1-alpine AS builder | ||
WORKDIR /go/memdb/ | ||
COPY . /go/memdb/ | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o go-memdb . | ||
|
||
FROM alpine:latest | ||
WORKDIR /memdb/ | ||
COPY --from=builder /go/memdb/go-memdb /memdb/go-memdb | ||
CMD ["./go-memdb"] |
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