feat: add git-consistent memory gateway architecture
This commit is contained in:
38
gateway/Dockerfile
Normal file
38
gateway/Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
FROM node:22-bookworm-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
QMD_VERSION=1.0.7 \
|
||||
PATH=/opt/venv/bin:$PATH \
|
||||
XDG_CACHE_HOME=/var/lib/qmd/cache \
|
||||
XDG_CONFIG_HOME=/var/lib/qmd/config
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
cmake \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
make \
|
||||
g++ \
|
||||
tini \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install -g "@tobilu/qmd@${QMD_VERSION}" \
|
||||
&& npm cache clean --force
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY gateway/requirements.txt /app/requirements.txt
|
||||
RUN python3 -m venv /opt/venv \
|
||||
&& pip install --no-cache-dir -r /app/requirements.txt
|
||||
|
||||
COPY gateway/app /app/app
|
||||
|
||||
EXPOSE 8787
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
CMD ["python3", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8787"]
|
||||
Reference in New Issue
Block a user