-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 869 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.11-bullseye
WORKDIR /app
COPY ./pyproject.toml ./poetry.lock poetry.toml ./
COPY ./package.json bun.lockb ./
COPY ./tsconfig.json ./
COPY ./path.config ./
COPY ./platform/ ./platform
COPY ./services/ ./services
RUN apt-get update && apt-get install -y git curl
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs
RUN git clone --depth 1 https://github.com/OpenFn/docs.git /app/docs
RUN python -m pip install --user pipx
RUN python -m pipx install poetry
ENV PATH="${PATH}:/root/.local/bin/"
RUN poetry install --only main --no-root
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="${PATH}:/root/.bun/bin/"
RUN bun install
# RUN --mount=type=secret,id=_env,dst=/.env cat /.env \
# && poetry run python services/search/generate_docs_embeddings.py docs openfn_docs
EXPOSE 3000
CMD ["bun", "start"]