Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Docker Build

on:
workflow_call:
workflow_dispatch:

jobs:
docker-build:
runs-on: ubuntu-latest
name: Docker Build
steps:
- uses: actions/checkout@v4

- name: Build Docker image
run: docker build -t redisinsight-local .
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ jobs:
uses: ./.github/workflows/lint.yml
secrets: inherit

docker-build:
uses: ./.github/workflows/docker-build.yml

frontend-tests:
needs: [changes, lint, should-run-all-tests]
if: |
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
# the best way to minimize the number of node_module restores and build steps
# while still keeping the final image small.

FROM node:22.22.0-alpine as build
FROM node:22.22.0-alpine AS build

# update apk repository and install build dependencies
RUN apk update && apk add --no-cache --virtual .gyp \
python3 \
py3-setuptools \
make \
git \
g++
g++ \
gcompat

# set workdir
WORKDIR /usr/src/app
Expand Down
Loading