-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
38 lines (30 loc) · 1.46 KB
/
Dockerfile
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
FROM node AS builder
# copy data approximately in order of how often they change / how big they are
COPY images /pintura/images
COPY test/ /pintura/test
COPY cimmenu /pintura/cimmenu
COPY cimsvg /pintura/cimsvg
COPY index.html Makefile package.json /pintura/
WORKDIR /pintura
RUN npm install -g [email protected]
RUN npm run build
FROM nginx
RUN mkdir -p /usr/share/nginx/html/templates
COPY images /usr/share/nginx/html/images
COPY --from=builder /pintura/dist /usr/share/nginx/html/dist/
COPY --from=builder /pintura/index.html /usr/share/nginx/html/
COPY example/example.zip /usr/share/nginx/html/example.zip
ARG GIT_COMMIT
LABEL \
org.label-schema.schema-version = "1.0" \
org.label-schema.name = "Pintura" \
org.label-schema.license = "MPL-2.0" \
org.label-schema.vendor = "Institute for Automation of Complex Power Systems, RWTH Aachen University" \
org.label-schema.author.name = "Richard Marston" \
org.label-schema.author.email = "[email protected]" \
org.label-schema.maintainer.name = "Steffen Vogel" \
org.label-schema.maintainer.email = "[email protected]" \
org.label-schema.description = "Pintura is a graphical editor for CIM XML-RDF files. CIM refers to the Common Information Model (CIM) standard (i.e. IEC61970/61968/62325) for the energy sector." \
org.label-schema.url = "http://fein-aachen.org/projects/pintura/" \
org.label-schema.vcs-url = "http://git.rwth-aachen.de/acs/public/cim/pintura" \
org.label-schema.vcs-commit = $GIT_COMMIT