-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (20 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
22 lines (20 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2015-2019 The Botogram Authors (see AUTHORS)
# Documentation released under the MIT license (see LICENSE)
# Image to build doc
FROM python:3.6-alpine3.6 as BUILDER
RUN apk update \
&& apk add git bash make
RUN pip install --upgrade pip
RUN pip install invoke virtualenv
COPY ./requirements-docs.txt /requirements-docs.txt
RUN pip install -r /requirements-docs.txt
COPY ./ /botogram
RUN cd /botogram && invoke docs && cd /botogram/.netlify && make
# Image final
FROM nginx:1.17.0-alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY /nginx-doc.conf /etc/nginx/conf.d/default.conf
COPY --from=BUILDER /botogram/.netlify/build/ ./botogram
ARG botogram_version=dev
ENV env_botogram_version=$botogram_version
RUN sed 's/RELEASE/'"$env_botogram_version"'/g' -i /etc/nginx/conf.d/default.conf