Private
Public Access
actualizado para usar air y tener builds más rapidas
This commit is contained in:
1 parent
2c9ffe9822
commit
73f9cef8ce
3 files changed
+90
-1
No files matched your search
@@ -0,0 +1,59 @@
|
||||
#:schema https://json.schemastore.org/any.json
|
||||
|
||||
env_files = []
|
||||
root = "."
|
||||
testdata_dir = "testdata"
|
||||
tmp_dir = "tmp"
|
||||
|
||||
[build]
|
||||
args_bin = []
|
||||
bin = "./tmp/main"
|
||||
cmd = "go build -o ./tmp/main ."
|
||||
delay = 1000
|
||||
entrypoint = ["./tmp/main"]
|
||||
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
|
||||
exclude_file = []
|
||||
exclude_regex = ["_test.go"]
|
||||
exclude_unchanged = false
|
||||
follow_symlink = false
|
||||
full_bin = ""
|
||||
ignore_dangerous_root_dir = false
|
||||
include_dir = []
|
||||
include_ext = ["go", "tpl", "tmpl", "html"]
|
||||
include_file = []
|
||||
kill_delay = "0s"
|
||||
log = "build-errors.log"
|
||||
poll = false
|
||||
poll_interval = 0
|
||||
post_cmd = []
|
||||
pre_cmd = []
|
||||
rerun = false
|
||||
rerun_delay = 500
|
||||
send_interrupt = false
|
||||
stop_on_error = false
|
||||
|
||||
[color]
|
||||
app = ""
|
||||
build = "yellow"
|
||||
main = "magenta"
|
||||
mode = ""
|
||||
runner = "green"
|
||||
watcher = "cyan"
|
||||
|
||||
[log]
|
||||
main_only = false
|
||||
silent = false
|
||||
time = false
|
||||
|
||||
[misc]
|
||||
clean_on_exit = false
|
||||
|
||||
[proxy]
|
||||
app_port = 0
|
||||
app_start_timeout = 0
|
||||
enabled = false
|
||||
proxy_port = 0
|
||||
|
||||
[screen]
|
||||
clear_on_rebuild = false
|
||||
keep_scroll = true
|
||||
@@ -0,0 +1,12 @@
|
||||
FROM golang:1.26-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN go install github.com/air-verse/air@latest
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["air", "-c", ".air.toml"]
|
||||
+19
-1
@@ -22,7 +22,7 @@ services:
|
||||
go-api:
|
||||
build:
|
||||
context: ./back
|
||||
dockerfile: Dockerfile
|
||||
dockerfile: Dockerfile.dev
|
||||
ports:
|
||||
- "8080:8080"
|
||||
env_file:
|
||||
@@ -33,6 +33,24 @@ services:
|
||||
restart: on-failure
|
||||
networks:
|
||||
- app-network
|
||||
volumes:
|
||||
- ./back:/app
|
||||
- /app/tmp
|
||||
|
||||
# go-api:
|
||||
# build:
|
||||
# context: ./back
|
||||
# dockerfile: Dockerfile
|
||||
# ports:
|
||||
# - "8080:8080"
|
||||
# env_file:
|
||||
# - ./back/.env
|
||||
# depends_on:
|
||||
# mysql:
|
||||
# condition: service_healthy
|
||||
# restart: on-failure
|
||||
# networks:
|
||||
# - app-network
|
||||
|
||||
mysql:
|
||||
image: mysql:8.4
|
||||
|
||||
Reference in new issue
Block a user