Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: ${{ matrix.context }}
platforms: linux/amd64,linux/arm64/v8
# builder: ${{ steps.buildx.outputs.name }}
push: true
# file: ${{ matrix.dockerfile }}
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-bookworm as frontend-builder
# Use multi-architecture base images
FROM --platform=$BUILDPLATFORM node:18-bookworm as frontend-builder

RUN npm install --global --force yarn@1.22.19

Expand Down Expand Up @@ -27,7 +28,8 @@ COPY --chown=redash webpack.config.js /frontend/
# Use `yarn run` to ensure the locally installed webpack is used
RUN yarn clean && yarn build:viz && NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production yarn run webpack && mkdir -p /frontend/client/dist && touch /frontend/client/dist/multi_org.html && touch /frontend/client/dist/index.html

FROM python:3.8-slim-bookworm
# Use multi-architecture base images
FROM --platform=$BUILDPLATFORM python:3.8-slim-bookworm

EXPOSE 5000

Expand Down Expand Up @@ -83,4 +85,4 @@ RUN chown redash /app
USER redash

ENTRYPOINT ["/app/bin/docker-entrypoint"]
CMD ["server"]
CMD ["server"]