forked from StartBootstrap/startbootstrap-modern-business
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (28 loc) · 773 Bytes
/
Dockerfile
File metadata and controls
37 lines (28 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:10 AS builder
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN apt-get update -qqy \
&& DEBIAN_FRONTEND=noninteractive apt-get -qy install \
python3-yaml \
python3-jinja2 \
python3-pip \
&& python3 -m pip install pymdown-extensions \
&& apt-get remove -y python3-pip \
&& apt-get -qqy clean all \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY . /home/node/app
WORKDIR /home/node/app
RUN npm install && ./node_modules/.bin/gulp
RUN python3 generate.py
RUN mkdir dist \
&& mv img dist \
&& mv css dist \
&& mv 2017 dist \
&& mv 2018 dist \
&& mv 2019 dist \
&& mv vendor dist \
&& mv *.html dist
FROM python:3.7-slim-buster
EXPOSE 8000
WORKDIR /srv
COPY --from=builder /home/node/app/dist /srv/
CMD ["python3", "-m", "http.server"]