Welp guess I need CA certs
This commit is contained in:
parent
18aa6846e9
commit
e76a886d5b
2 changed files with 6 additions and 5 deletions
|
@ -10,8 +10,11 @@ COPY . .
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /go/bin/app
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /go/bin/app
|
||||||
|
|
||||||
FROM scratch
|
FROM gcr.io/distroless/static-debian11
|
||||||
|
|
||||||
|
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
||||||
COPY --from=build /go/bin/app /app
|
COPY --from=build /go/bin/app /app
|
||||||
|
|
||||||
|
# Set the entrypoint
|
||||||
ENTRYPOINT ["/app"]
|
ENTRYPOINT ["/app"]
|
||||||
|
|
6
fly.toml
6
fly.toml
|
@ -8,12 +8,10 @@ primary_region = 'ord'
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
|
|
||||||
[http_service]
|
[[services]]
|
||||||
internal_port = 3000
|
internal_port = 3000
|
||||||
auto_stop_machines = 'suspend'
|
protocol = "tcp"
|
||||||
auto_start_machines = true
|
|
||||||
min_machines_running = 1
|
min_machines_running = 1
|
||||||
processes = ['app']
|
|
||||||
|
|
||||||
[[vm]]
|
[[vm]]
|
||||||
size = 'shared-cpu-1x'
|
size = 'shared-cpu-1x'
|
||||||
|
|
Loading…
Add table
Reference in a new issue