-
Notifications
You must be signed in to change notification settings - Fork 21
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
a12e6d5
commit 33bbadc
Showing
7 changed files
with
124 additions
and
9 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,24 @@ | ||
# flyctl launch added from .gitignore | ||
# Binaries for programs and plugins | ||
**/*.exe | ||
**/*.exe~ | ||
**/*.dll | ||
**/*.so | ||
**/*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
**/*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
**/*.out | ||
|
||
# Go workspace file | ||
**/go.work | ||
|
||
### Go Patch ### | ||
vendor | ||
Godeps | ||
|
||
# GoReleaser | ||
**/dist | ||
fly.toml |
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,13 @@ | ||
ARG GO_VERSION=1 | ||
FROM golang:${GO_VERSION}-alpine as builder | ||
|
||
WORKDIR /usr/src/app | ||
COPY go.mod go.sum ./ | ||
RUN go mod download && go mod verify | ||
COPY . . | ||
RUN go build -v -o /run-app . | ||
|
||
FROM alpine:latest | ||
|
||
COPY --from=builder /run-app /usr/local/bin/ | ||
CMD ["run-app", "-serve", "0.0.0.0:3000"] |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# fly.toml app configuration file generated for clidle on 2024-02-14T17:52:47+05:30 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'clidle' | ||
primary_region = 'sjc' | ||
|
||
[build] | ||
[build.args] | ||
GO_VERSION = '1.13' | ||
|
||
[[services]] | ||
internal_port = 3000 | ||
protocol = "tcp" | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 1 | ||
|
||
[[services.ports]] | ||
port = 3000 | ||
|
||
[[vm]] | ||
memory = '256mb' | ||
size = 'shared-cpu-1x' |
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
Empty file.