diff --git a/.github/workflows/next_deploy.yml b/.github/workflows/next_deploy.yml index 63f2a06e..e31ffb94 100644 --- a/.github/workflows/next_deploy.yml +++ b/.github/workflows/next_deploy.yml @@ -3,6 +3,7 @@ on: push: branches: - develop # change to main if needed + - fix/dockerfile-next jobs: deploy: name: Deploy app @@ -13,4 +14,4 @@ jobs: - uses: superfly/flyctl-actions/setup-flyctl@master - run: flyctl deploy --remote-only env: - FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }} \ No newline at end of file + FLY_API_TOKEN: ${{ secrets.FLYIO_TOKEN }} diff --git a/Dockerfile_next b/Dockerfile_next index a0eb3c49..57e7f548 100644 --- a/Dockerfile_next +++ b/Dockerfile_next @@ -8,19 +8,17 @@ RUN echo "Commit SHA: ${COMMIT_SHA}" # Set the working directory WORKDIR $GOPATH/src/github.com/diggerhq/digger -# Cache Go dependencies by copying only the go.mod and go.sum files -COPY go.mod go.sum ./ +# copy the application +COPY . . RUN go mod download -# Copy the rest of the application code -COPY . . # Build the static binary RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o next_exe ./next/ # Stage 2: Runner -FROM ubuntu:24.04-slim AS runner -ENV ATLAS_VERSION v0.16.0 +FROM ubuntu:24.04 AS runner +ENV ATLAS_VERSION v0.28.0 ARG COMMIT_SHA WORKDIR /app