Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 548 Bytes
FROM nginx:alpine
ENV SRC_DIR=/app
COPY . $SRC_DIR
RUN echo "#### Install necessary packages" && \
apk --no-cache add \
bash \
make \
python3 \
vim
RUN echo "#### Install python packages" && \
pip3 install --upgrade pip && \
pip3 install -r $SRC_DIR/requirements.txt
RUN echo "#### Building site" && \
cd $SRC_DIR && \
make html && \
mv $SRC_DIR/output/* /usr/share/nginx/html/
RUN echo "#### Cleanup..." && \
rm -rf /usr/lib/python3* && \
rm -rf $SRC_DIR && \
unset SRC_DIR