|
1 |
| -FROM debian:buster-slim |
| 1 | +FROM ubuntu:latest |
| 2 | + |
| 3 | +ARG DEBIAN_FRONTEND=noninteractive |
2 | 4 |
|
3 | 5 | WORKDIR /
|
4 |
| -RUN apt-get -y update && apt-get -y --no-install-recommends --no-install-suggests install git python3 python3-pip unzip wget libpq-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev npm python3-setuptools python3-dev python3-wheel supervisor |
| 6 | +RUN apt-get -y update && apt-get -y --no-install-recommends --no-install-suggests install git python3 python3-pip unzip wget libpq-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python3-setuptools python3-dev python3-wheel supervisor |
| 7 | + |
| 8 | +ENV LC_ALL=C.UTF-8 |
| 9 | +ENV LANG=C.UTF-8 |
| 10 | + |
| 11 | +RUN wget https://downloads.python.org/pypy/pypy3.8-v7.3.7-linux64.tar.bz2 |
| 12 | +RUN tar -xf pypy3.8-v7.3.7-linux64.tar.bz2 |
| 13 | +ENV PATH="${PATH}:/pypy3.8-v7.3.7-linux64/bin" |
| 14 | + |
| 15 | +RUN /pypy3.8-v7.3.7-linux64/bin/python3 -m ensurepip |
| 16 | + |
| 17 | +RUN /pypy3.8-v7.3.7-linux64/bin/python3 -m pip install --upgrade pip |
| 18 | +RUN /pypy3.8-v7.3.7-linux64/bin/python3 -m pip install lark-parser |
5 | 19 |
|
6 | 20 | RUN python3 -m pip install --upgrade pip
|
7 | 21 |
|
8 |
| -RUN python3 -m pip install flask flask-cors numpy Pillow gunicorn rq redis SQLAlchemy==1.3.24 psycopg2 sqlalchemy-utils Flask-BasicAuth flasgger requests flask-dropzone lark-parser pyparsing XlsxWriter fuzzywuzzy python-Levenshtein requests_oauthlib Authlib requests argparse --upgrade |
9 |
| -RUN npm install -g jsdoc gltf-pipeline requirejs npx uglify-js |
| 22 | +RUN python3 -m pip install flask flask-cors numpy gunicorn rq redis SQLAlchemy==1.4.31 psycopg2 psycopg2cffi sqlalchemy-utils Flask-BasicAuth flasgger requests pyparsing XlsxWriter requests_oauthlib Authlib requests argparse --upgrade |
10 | 23 |
|
11 | 24 | # IfcConvert v0.6.0
|
12 | 25 | RUN wget https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v0.6.0-c15fdc7-linux64.zip -O /tmp/IfcConvert.zip
|
13 | 26 | RUN unzip /tmp/IfcConvert.zip -d /usr/bin
|
14 | 27 |
|
15 |
| -RUN wget -O /tmp/ifcopenshell_python.zip https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-`python3 -c 'import sys;print("".join(map(str, sys.version_info[0:2])))'`-v0.6.0-c15fdc7-linux64.zip |
| 28 | +RUN wget -O /tmp/ifcopenshell_python.zip https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-`python3 -c 'import sys;print("".join(map(str, sys.version_info[0:2]))[0:2])'`-v0.7.0-883b8a5-linux64.zip |
16 | 29 | RUN mkdir -p `python3 -c 'import site; print(site.getusersitepackages())'`
|
17 | 30 | RUN unzip -d `python3 -c 'import site; print(site.getusersitepackages())'` /tmp/ifcopenshell_python.zip
|
18 | 31 |
|
19 |
| - |
20 | 32 | # Temporary 'hotfix'
|
21 |
| -RUN wget -O `python3 -c 'import site; print(site.getusersitepackages())'`/ifcopenshell/validate.py https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.6.0/src/ifcopenshell-python/ifcopenshell/validate.py |
| 33 | +RUN wget -O `python3 -c 'import site; print(site.getusersitepackages())'`/ifcopenshell/validate.py https://raw.githubusercontent.com/IfcOpenShell/IfcOpenShell/v0.7.0/src/ifcopenshell-python/ifcopenshell/validate.py |
22 | 34 |
|
23 | 35 | # Server
|
24 | 36 | WORKDIR /www
|
25 | 37 | COPY application/*.py /www/
|
26 | 38 | COPY application/templates /www/templates
|
27 | 39 |
|
28 | 40 | COPY application/checks /www/checks
|
29 |
| -RUN unzip -d /www/checks /tmp/ifcopenshell_python.zip |
30 |
| - |
31 |
| - |
32 |
| -RUN mkdir -p /www/checks/ifcopenshell/mvd |
33 |
| -RUN echo 1 |
34 |
| -RUN git clone https://github.com/opensourceBIM/python-mvdxml /www/checks/ifcopenshell/mvd |
35 | 41 |
|
36 |
| -# RUN ls www/checks/ifcopenshell/ |
37 |
| -# RUN mv python-mvdxml/* www/checks/ifcopenshell/mvd |
38 |
| -# RUN ls www/checks/ifcopenshell/ |
| 42 | +COPY application/*.yml /www/ |
39 | 43 |
|
40 | 44 | COPY .git/HEAD /tmp/.git/HEAD
|
41 | 45 | COPY .git/refs/ /tmp/.git/refs/
|
42 | 46 | RUN /bin/bash -c '(cat /tmp/.git/$(cat /tmp/.git/HEAD | cut -d \ -f 2)) || cat /tmp/.git/HEAD' > /version
|
43 | 47 | RUN sed -i "4i<script>console.log('pipeline version: $(cat /version)');</script>" /www/templates/*.html
|
44 | 48 | RUN rm -rf /tmp/.git
|
45 | 49 |
|
46 |
| -RUN npm i -D @babel/preset-env @babel/core @babel/cli |
47 |
| - |
48 | 50 | COPY application/static /www/static/
|
49 | 51 | COPY application/bimsurfer/bimsurfer /www/static/bimsurfer
|
50 | 52 |
|
51 |
| -WORKDIR /www/static |
52 |
| -# RUN jsdoc -r -d docs bimsurfer |
53 |
| -RUN r.js -o baseUrl=. name=App out=App.built.js optimize=none |
54 |
| -RUN npx babel App.built.js -o App.built.es2015.js --presets=@babel/preset-env --compact false |
55 |
| -RUN uglifyjs --compress -o App.$(cat /version).js -- App.built.es2015.js |
56 |
| -RUN npx babel bimsurfer/lib/DRACOLoader.js -o bimsurfer/lib/DRACOLoader.es2015.js --presets=@babel/preset-env --compact false |
57 |
| -RUN uglifyjs --compress -o bimsurfer/lib/three.gltf.orbit.draco.min.js -- bimsurfer/lib/three.js bimsurfer/lib/GLTFLoader.js bimsurfer/lib/DRACOLoader.es2015.js bimsurfer/lib/OrbitControls.js |
58 |
| -RUN rm -rf node_modules package-lock.json |
59 |
| - |
60 | 53 | COPY application/queue.conf /etc/supervisord.conf
|
61 | 54 |
|
62 | 55 | WORKDIR /www
|
0 commit comments