Skip to content

Commit

Permalink
Merge pull request #52 from AvaliaSystems/wasadigi-patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
wasadigi authored Oct 17, 2023
2 parents 11a9805 + e8b20e4 commit 07c2248
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docker/dx-hub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ 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 libsqlite3-dev python3 build-essential && \
apt-get install -y --no-install-recommends libsqlite3-dev python3 python3-pip build-essential gcc musl-dev openjdk-17-jdk curl graphviz fonts-dejavu fontconfig && \
yarn config set python /usr/bin/python3
apt-get install -y --no-install-recommends libsqlite3-dev python3 python3-pip python3-venv build-essential gcc musl-dev openjdk-17-jdk curl graphviz fonts-dejavu fontconfig && \

#
# Set up a virtual environment for mkdocs-techdocs-core
#
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

#
# Install TechDocs requirements
Expand All @@ -32,4 +37,4 @@ RUN --mount=type=cache,target=/home/node/.cache/yarn,sharing=locked,uid=1000,gid
COPY --chown=node:node packages/backend/dist/bundle.tar.gz app-config*.yaml ./
RUN tar xzf bundle.tar.gz && rm bundle.tar.gz

CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.docker.yaml", "--config", "app-config.local.yaml"]
CMD ["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.docker.yaml", "--config", "app-config.local.yaml"]

0 comments on commit 07c2248

Please sign in to comment.