File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -64,3 +64,6 @@ yarn-error.log*
64
64
next-env.d.ts
65
65
66
66
.idea /
67
+
68
+ # ignore adding self-signed certs
69
+ certs /
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1-labs
2
2
3
- FROM node:20-alpine AS node_base
3
+ # Build argument for custom certificates directory
4
+ ARG CUSTOM_CERT_DIR="certs"
5
+
6
+ FROM node:20-alpine3.22 AS node_base
4
7
5
8
FROM node_base AS node_deps
6
9
WORKDIR /app
@@ -37,6 +40,7 @@ RUN apt-get update && apt-get install -y \
37
40
curl \
38
41
gnupg \
39
42
git \
43
+ ca-certificates \
40
44
&& mkdir -p /etc/apt/keyrings \
41
45
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
42
46
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
@@ -45,6 +49,18 @@ RUN apt-get update && apt-get install -y \
45
49
&& apt-get clean \
46
50
&& rm -rf /var/lib/apt/lists/*
47
51
52
+ # Update certificates if custom ones were provided and copied successfully
53
+ RUN if [ -n "${CUSTOM_CERT_DIR}" ]; then \
54
+ mkdir -p /usr/local/share/ca-certificates && \
55
+ if [ -d "${CUSTOM_CERT_DIR}" ]; then \
56
+ cp -r ${CUSTOM_CERT_DIR}/* /usr/local/share/ca-certificates/ 2>/dev/null || true; \
57
+ update-ca-certificates; \
58
+ echo "Custom certificates installed successfully." ; \
59
+ else \
60
+ echo "Warning: ${CUSTOM_CERT_DIR} not found. Skipping certificate installation." ; \
61
+ fi \
62
+ fi
63
+
48
64
ENV PATH="/opt/venv/bin:$PATH"
49
65
50
66
# Copy Python dependencies
Original file line number Diff line number Diff line change @@ -324,6 +324,8 @@ If `DEEPWIKI_AUTH_MODE` is not set or is set to `false` (or any other value than
324
324
325
325
You can use Docker to run DeepWiki:
326
326
327
+ #### Running the Container
328
+
327
329
``` bash
328
330
# Pull the image from GitHub Container Registry
329
331
docker pull ghcr.io/asyncfuncai/deepwiki-open:latest
@@ -400,6 +402,22 @@ docker run -p 8001:8001 -p 3000:3000 \
400
402
deepwiki-open
401
403
```
402
404
405
+ #### Using Self-Signed Certificates in Docker
406
+
407
+ If you're in an environment that uses self-signed certificates, you can include them in the Docker build:
408
+
409
+ 1 . Create a directory for your certificates (default is ` certs ` in your project root)
410
+ 2 . Copy your ` .crt ` or ` .pem ` certificate files into this directory
411
+ 3 . Build the Docker image:
412
+
413
+ ``` bash
414
+ # Build with default certificates directory (certs)
415
+ docker build .
416
+
417
+ # Or build with a custom certificates directory
418
+ docker build --build-arg CUSTOM_CERT_DIR=my-custom-certs .
419
+ ```
420
+
403
421
### API Server Details
404
422
405
423
The API server provides:
You can’t perform that action at this time.
0 commit comments