From a7f33a4126a5822ccf481ae7d7f540128ef1ae26 Mon Sep 17 00:00:00 2001 From: Tine Date: Mon, 3 Jun 2024 21:31:14 +0200 Subject: [PATCH] feat: docker scratch image, move deploy to own justfile --- build/Dockerfile | 2 +- build/Justfile | 17 ----------------- deploy/Justfile | 16 ++++++++++++++++ justfile | 7 +++++++ 4 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 deploy/Justfile diff --git a/build/Dockerfile b/build/Dockerfile index a21fee6..b6a819c 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/distroless/static-debian12:latest as production +FROM scratch ARG TARGETARCH ARG TARGETOS diff --git a/build/Justfile b/build/Justfile index 1f93f52..7b2f001 100644 --- a/build/Justfile +++ b/build/Justfile @@ -1,20 +1,3 @@ -# 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 < 2.23.0 < 2.27.2 is broken for us. + # Using latest of everything results (at the time of writing) in to + # working server but broken ui-server (404 when it tries to list namespaces). go get -u -t \ go.k6.io/k6@v0.51.0 \ github.com/temporalio/ui-server/v2@v2.23.0 \