forked from pwmarcz/autotable
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (33 loc) · 1013 Bytes
/
Dockerfile
File metadata and controls
42 lines (33 loc) · 1013 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
38
39
40
41
42
FROM debian:bullseye-slim AS inkscape
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
inkscape \
make
WORKDIR /build/
COPY Makefile ./
COPY img/*.svg ./img/
RUN make svgs
FROM debian:bullseye-slim AS blender
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
blender \
python3-pip \
make
RUN pip3 install -U numpy
WORKDIR /build/
COPY Makefile ./
COPY --from=inkscape /build/img/* ./img/
COPY export.py ./
COPY img/* ./img/
RUN make files
FROM node:12.18 AS parcel
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
make
COPY ./ /build/
WORKDIR /build/
COPY --from=blender /build/img/* ./img/
RUN yarn
RUN make -o files build
FROM nginx
COPY --from=parcel /build/build /dist
COPY ./nginx.conf /etc/nginx/nginx.conf