Skip to content

Commit

Permalink
Merge branch 'main' into fharper/links
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Oct 10, 2024
2 parents b992a50 + 66838cc commit ee0ae9e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.docusaurus/
node_modules/
build/
21 changes: 10 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ FROM node:20-alpine3.17 AS builder

WORKDIR /app

COPY . .
COPY package*.json .

RUN npm ci

RUN npm install \
&& npm run build
COPY . .

FROM nginx:1.25.1-alpine AS runner
RUN npm run build

WORKDIR /usr/share/nginx/docs
FROM ghcr.io/patrickdappollonio/docker-http-server:v2.4.0

ENV NODE_ENV production
WORKDIR /html

COPY --from=builder /app/build/ .

COPY default.conf /etc/nginx/conf.d/

EXPOSE 80
ENV PORT=80

ENV PORT 80
ENTRYPOINT ["/http-server"]

CMD ["nginx", "-g", "daemon off;"]
CMD ["--pathprefix=/docs/", "--disable-directory-listing", "--custom-404=404.html"]
29 changes: 0 additions & 29 deletions default.conf

This file was deleted.

36 changes: 36 additions & 0 deletions static/_redirections
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This break for files under /docs. Opting
# to manually list all redirects to /overview for now
# Eg. sitemap -> /docs/sitemap.xml/overview
# redirect to overviews
# /docs/:name /docs/:name/overview permanent
# /docs/:name/ /docs/:name/overview/ permanent

/docs/k3d /docs/k3d/overview permanent
/docs/k3d/ /docs/k3d/overview/ permanent

/docs/akamai /docs/akamai/overview permanent
/docs/akamai/ /docs/akamai/overview/ permanent

/docs/aws /docs/aws/overview permanent
/docs/aws/ /docs/aws/overview/ permanent

/docs/civo /docs/civo/overview permanent
/docs/civo/ /docs/civo/overview/ permanent

# redirect /docs/google/* to /docs/gcp/*
/docs/digitalocean/:splat /docs/do/:splat permanent
/docs/digitalocean /docs/do permanent
/docs/do /docs/do/overview permanent
/docs/do/ /docs/do/overview/ permanent

# redirect /docs/google/* to /docs/gcp/*
/docs/google/:splat /docs/gcp/:splat permanent
/docs/google /docs/gcp permanent
/docs/gcp /docs/gcp/overview permanent
/docs/gcp/ /docs/gcp/overview/ permanent

/docs/k3s /docs/k3s/overview permanent
/docs/k3s/ /docs/k3s/overview/ permanent

/docs/vultr /docs/vultr/overview permanent
/docs/vultr/ /docs/vultr/overview/ permanent

0 comments on commit ee0ae9e

Please sign in to comment.