-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
30 lines (26 loc) · 928 Bytes
/
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
FROM alpine AS journaler
RUN apk add --no-cache \
python3-dev py3-pip \
wget ca-certificates \
# For generateDS
gcc libxslt-dev libxml2 libc-dev && \
pip install --upgrade pip generateDS==2.36.5
WORKDIR /xsd/
RUN update-ca-certificates && \
wget -nv -O core_schema.zip https://www.fixm.aero/releases/FIXM-3.0/FIXM_Core_v3_0_Schemas.zip && \
wget -nv -O ext_schema.zip https://www.fixm.aero/releases/US_Ext-3.0/FIXM_US_Extension_v3_0_Schemas.zip && \
unzip core_schema.zip && \
unzip ext_schema.zip && \
rm core_schema.zip && \
rm ext_schema.zip
COPY resources/base_schema.xsd .
# Generate XSD Python code
WORKDIR /pyfixm/
RUN generateDS \
-o /pyfixm/__init__.py \
-s /pyfixm/subs.py \
/xsd/base_schema.xsd
# Create the license
WORKDIR /license/
COPY resources/get_license.py .
RUN python3 get_license.py /xsd/schemas/core/base/Base.xsd /pyfixm/LICENSE