fix ingest-options python env and use shared bridge network
This commit is contained in:
parent
4608d5425f
commit
f578deea03
3 changed files with 30 additions and 12 deletions
|
|
@ -3,13 +3,16 @@ FROM oven/bun:1.3.11
|
|||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV VIRTUAL_ENV=/opt/ingest-options-venv
|
||||
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3 python3-pip \
|
||||
&& apt-get install -y --no-install-recommends python3 python3-pip python3-venv \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& pip3 install --no-cache-dir -r services/ingest-options/py/requirements.txt \
|
||||
&& python3 -m venv "${VIRTUAL_ENV}" \
|
||||
&& "${VIRTUAL_ENV}/bin/pip" install --no-cache-dir -r services/ingest-options/py/requirements.txt \
|
||||
&& bun install --frozen-lockfile
|
||||
|
||||
ENTRYPOINT ["bun"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue