-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
28 lines (22 loc) · 1022 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
# Build with:
# docker build -t ogrisel/python-winbuilder .
FROM ubuntu:trusty
MAINTAINER Olivier Grisel <olivier.grisel@ensta.org>
WORKDIR /root
USER root
# Install wine with 32 bit support
RUN dpkg --add-architecture i386
RUN apt-get update -y -qq && apt-get install -y wine
# Install python 3.4 and pyyaml to run the main setup script
RUN apt-get install -y python3.4 curl
RUN curl https://bootstrap.pypa.io/get-pip.py | python3.4
RUN python3.4 -m pip install pyyaml
# Prefetch mingw and Python to leverage Dockerfile caching
RUN curl -O -J -L https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/mingw32static-2014-11.tar.xz
RUN curl -O -J -L https://bitbucket.org/carlkl/mingw-w64-for-python/downloads/mingw64static-2014-11.tar.xz
# Build the wine-based build environments
ADD pywinbuilder.py /root/pywinbuilder.py
ADD pywinbuilder.yml /root/pywinbuilder.yml
RUN python3.4 pywinbuilder.py pywinbuilder.yml
# Convenience: enable last wine prefix as the default
RUN ln -s /wine/wine-py3.4.2-64 $HOME/.wine