Skip to content

Commit 4651102

Browse files
committed
Merge branch 'development'
2 parents 487f9ff + 961e8e7 commit 4651102

36 files changed

Lines changed: 675 additions & 487 deletions

.github/workflows/docfx.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

ci/azure-pipelines-docfx.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

ci/azure-pipelines.yml

Lines changed: 0 additions & 216 deletions
This file was deleted.

docfx/Dockerfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Stage 1: Build DocFX site
2+
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS docfx-build
3+
4+
# Create non-root user
5+
RUN addgroup -S docfx && adduser -S docfx -G docfx
6+
7+
# Switch early
8+
USER docfx
9+
ENV HOME=/home/docfx
10+
ENV PATH="$PATH:/home/docfx/.dotnet/tools"
11+
12+
WORKDIR /workspace
13+
14+
# Install DocFX as docfx user
15+
RUN dotnet tool install -g docfx
16+
17+
# Copy sources
18+
COPY --chown=docfx:docfx docfx ./docfx
19+
COPY --chown=docfx:docfx src ./src
20+
21+
WORKDIR /workspace/docfx
22+
RUN docfx docfx_project/docfx.json
23+
24+
# Stage 2: Runtime (Nginx)
25+
FROM nginx:alpine
26+
27+
# Create non-root user
28+
RUN addgroup -S nginx-user && adduser -S nginx-user -G nginx-user
29+
30+
# Prepare runtime directories
31+
RUN mkdir -p /var/cache/nginx /var/run \
32+
&& chown -R nginx-user:nginx-user /var/cache/nginx /var/run
33+
34+
# Remove default content and config
35+
RUN rm -rf /usr/share/nginx/html/* \
36+
&& rm /etc/nginx/conf.d/default.conf
37+
38+
# Copy static site
39+
COPY --from=docfx-build \
40+
--chown=nginx-user:nginx-user \
41+
/workspace/docfx/docfx_project/_site \
42+
/usr/share/nginx/html
43+
44+
# Provide nginx config
45+
COPY docfx/nginx.conf /etc/nginx/nginx.conf
46+
47+
USER nginx-user
48+
49+
EXPOSE 8080
50+
CMD ["nginx", "-g", "daemon off;"]

docfx/docfx_project/filterConfig.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ apiRules:
2525
type: Type
2626
- exclude:
2727
uidRegex: ^Artemis\.Core\.TypeExtensions
28+
type: Type
29+
- exclude:
30+
uidRegex: ^Artemis\.Storage
2831
type: Type

0 commit comments

Comments
 (0)