Skip to content

Commit

Permalink
Feature: Quack-UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Jan 4, 2025
1 parent 04e36ec commit aa1707a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM node:20-alpine AS build
WORKDIR /app
RUN apk add git
RUN git clone -b selfservice https://github.com/quackscience/quack-ui /app
RUN npm install -g pnpm
RUN npx update-browserslist-db@latest
RUN npm install && npm run build

FROM python:3.8.10-slim
WORKDIR /app
ADD requirements.txt .
RUN apt update && apt install -y binutils wget \
RUN apt update && apt install -y binutils wget git \
&& pip install -r requirements.txt \
&& rm -rf /var/lib/apt/lists/* && rm -rf ~/.cache/pip/*
ADD main.py .
ADD public ./public
COPY --from=build /app/dist ./public
EXPOSE 8123
ARG VITE_SELFSERVICE=true
CMD ["python3","./main.py"]
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def clickhouse():
if query_id in cache:
return cache[query_id], 200
if not query:
return app.send_static_file('play.html')
return app.send_static_file('index.html')
if request.method == "POST":
data = request.get_data(as_text=True)
if database:
Expand Down
File renamed without changes.

0 comments on commit aa1707a

Please sign in to comment.