forked from mapcrafter/blockcrafter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (12 loc) · 676 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (12 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3-alpine
RUN apk --no-cache add git mesa-osmesa mesa-gles gcc gfortran python-dev build-base wget freetype-dev fontconfig-dev libpng-dev libjpeg-turbo-dev openblas-dev && pip install numpy vispy Pillow
COPY . /blockcrafter
RUN cd /blockcrafter && pip wheel .
FROM python:3-alpine
RUN apk --no-cache add mesa-osmesa mesa-gles libpng freetype fontconfig-dev libjpeg-turbo openblas binutils shadow
COPY --from=0 /blockcrafter/*.whl /blockcrafter/
RUN rm -f /blockcrafter/*manylinux1*.whl && pip install /blockcrafter/*.whl
COPY entrypoint.sh /
ENV VISPY_GL_LIB /usr/lib/libGLESv2.so.2
ENV OSMESA_LIBRARY /usr/lib/libOSMesa.so.8
ENTRYPOINT ["/entrypoint.sh"]