-
Notifications
You must be signed in to change notification settings - Fork 7
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
pazemo
authored and
pazemo
committed
Nov 12, 2022
1 parent
3cf16bd
commit 1f24bb7
Showing
5 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,15 @@ | ||
FROM golang:1.19.3-buster | ||
WORKDIR /usr/src/app/ | ||
USER ${USER} | ||
COPY ./go.mod /usr/src/app/ | ||
COPY . /usr/src/app/ | ||
ENV GO111MODULE="on" \ | ||
CGO_ENABLED="0" | ||
RUN apt-get autoclean \ | ||
&& apt-get autoremove \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential | ||
RUN go mod tidy \ | ||
&& go mod download \ | ||
&& go build -o 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package gpc | ||
|
||
import ( | ||
"fmt" | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package gpc | ||
|
||
import ( | ||
"fmt" | ||
|