mirror of
https://github.com/monero-project/monero-docs.git
synced 2024-12-22 19:49:22 +00:00
add dockerfile for coolify previews
This commit is contained in:
parent
dfb1b2be64
commit
c5b5b6c018
1 changed files with 31 additions and 0 deletions
31
Dockerfile_coolify
Normal file
31
Dockerfile_coolify
Normal file
|
@ -0,0 +1,31 @@
|
|||
FROM python:3.9-slim AS builder
|
||||
|
||||
WORKDIR /monero-docs
|
||||
|
||||
COPY . /monero-docs
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN mkdocs build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=builder /monero-docs/public /usr/share/nginx/html
|
||||
|
||||
# Inline Nginx configuration
|
||||
RUN echo 'server { \
|
||||
listen 80; \
|
||||
root /usr/share/nginx/html; \
|
||||
index index.html index.htm; \
|
||||
error_page 404 /404.html; \
|
||||
location = /404.html { \
|
||||
internal; \
|
||||
} \
|
||||
location / { \
|
||||
try_files $uri $uri/ =404; \
|
||||
} \
|
||||
}' > /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in a new issue