Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ RUN pip install -r /requirements-docs.txt
COPY ./ /botogram
RUN cd /botogram && invoke docs && cd .netlify && make

RUN apk add tree
RUN tree /botogram/.netlify/build

# Image final
FROM nginx:latest
ENV botogram_version dev
ARG botogram_version=dev
ENV env_botogram_version=$botogram_version
RUN rm /etc/nginx/conf.d/default.conf
ADD https://gist.githubusercontent.com/matteb99/4ab0dffc07558273401220f3e0426f5a/raw/7fc18180327f57b6ab8bbbad9f629a0e5955a4a1/gistfile1.txt /etc/nginx/conf.d/default.conf
RUN sed 's/RELEASE/'"$botogram_version"'/g' -i /etc/nginx/conf.d/default.conf
COPY /nginx-doc.conf /etc/nginx/conf.d/default.conf
RUN sed 's/RELEASE/'"$env_botogram_version"'/g' -i /etc/nginx/conf.d/default.conf
COPY --from=BUILDER /botogram/.netlify/build/ ./botogram

29 changes: 29 additions & 0 deletions nginx-doc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
server {
index index.php index.html;
listen 80 default_server;
root /botogram;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
keepalive_timeout 70;
location = /favicon.ico {
alias /botogram/favicon.ico;
}
location / {
index index.php index.html index.htm;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}

location = /docs {
return 301 /docs/RELEASE/;
}

error_page 404 /404.html;

location = /404.html {
root /botogram/;
internal;
}
}

Binary file added website/favicon.ico
Binary file not shown.