-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: docker scratch image, move deploy to own justfile
- Loading branch information
1 parent
883ec38
commit a7f33a4
Showing
4 changed files
with
24 additions
and
18 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM gcr.io/distroless/static-debian12:latest as production | ||
FROM scratch | ||
ARG TARGETARCH | ||
ARG TARGETOS | ||
|
||
|
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,16 @@ | ||
# Deploy the application to fly.io | ||
deploy-fly: | ||
fly deploy --ha=false -c deploy/fly.toml -i {{DOCKER_IMAGE}} | ||
|
||
# Read local jwt key and set it as fly secret | ||
deploy-fly-set-jwt-key-secrets: | ||
#!/bin/bash | ||
# https://github.com/superfly/flyctl/issues/589 | ||
cat <<EOF | fly secrets import -c deploy/fly.toml | ||
JWT_PRIVATE_KEY="""{{JWT_PRIVATE_KEY}}""" | ||
JWT_PUBLIC_KEY="""{{JWT_PUBLIC_KEY}}""" | ||
EOF | ||
|
||
# Deploy locally with docker compose | ||
deploy-docker: build-docker | ||
docker compose --file dpeloy/docker-compose.yaml up |
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