-
-
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.
Remove the word Location from tweet message
- Loading branch information
1 parent
e2eb966
commit e21c736
Showing
2 changed files
with
27 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,21 @@ | ||
FROM golang:alpine as Build | ||
|
||
# We need tzdata for the timezone information and the | ||
# ca-certificates for ssl cert verification | ||
RUN apk --no-cache add tzdata ca-certificates | ||
|
||
WORKDIR /app | ||
|
||
COPY * ./ | ||
|
||
RUN go build -a -tags netgo -ldflags '-w' -v -o main . | ||
|
||
FROM scratch | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=Build /usr/share/zoneinfo /usr/share/zoneinfo | ||
COPY --from=Build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=Build /app/main . | ||
|
||
CMD [ "/app/main" ] |
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