Skip to content

Commit

Permalink
fix: update deps for techdocs and mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
josmo committed Jan 20, 2024
1 parent e290899 commit c0525d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FROM node:18-bookworm-slim
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && \
apt-get install -y --no-install-recommends python3 g++ build-essential && \
apt-get install -y --no-install-recommends python3 python3-pip python3-venv g++ build-essential && \
yarn config set python /usr/bin/python3

# Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image,
Expand All @@ -25,6 +25,12 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update && \
apt-get install -y --no-install-recommends libsqlite3-dev

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

RUN pip3 install mkdocs-techdocs-core

# From here on we use the least-privileged `node` user to run the backend.
USER node

Expand Down

0 comments on commit c0525d8

Please sign in to comment.