-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 1.25 KB
/
Copy pathDockerfile
File metadata and controls
33 lines (24 loc) · 1.25 KB
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
FROM mcr.microsoft.com/windows:1809 AS runtimes
# Install Visual C++ runtimes
COPY Visual-C-Runtimes-All-in-One.zip /vc_runtimes.zip
RUN mkdir vc_runtimes
RUN tar -xvf /vc_runtimes.zip -C /vc_runtimes
FROM mcr.microsoft.com/windows:1809
# Get Flo2D executable and dependencies
COPY ./flo2d /flo2d
RUN msiexec /log C:\\flo2d\\icl_redist_ia32.txt /i "C:\\flo2d\\ww_icl_redist_ia32_2017.8.275.msi" /quiet
RUN msiexec /log C:\\flo2d\\icl_redist_intel64.txt /i "C:\\flo2d\\ww_icl_redist_intel64_2017.8.275.msi" /quiet
RUN msiexec /log C:\\flo2d\\ifort_redist_ia32.txt /i "C:\\flo2d\\ww_ifort_redist_ia32_2017.8.275.msi" /quiet
RUN msiexec /log C:\\flo2d\\ifort_redist_intel64.txt /i "C:\\flo2d\\ww_ifort_redist_intel64_2017.8.275.msi" /quiet
# install necessary runtime environments for ide
RUN powershell.exe -NoLogo -Command "Set-ExecutionPolicy RemoteSigned -scope CurrentUser; iwr -UseBasicParsing 'https://get.scoop.sh' | iex;"
RUN scoop install python
# Install pywin32 and numpy modules
RUN python -m pip install in_place
# Install Visual C++ runtimes
COPY --from=runtimes /vc_runtimes /vc_runtimes
RUN /vc_runtimes/install_all.bat
COPY ./runflo.py /runflo.py
WORKDIR /Users/Public/flo2d
ENV GALILEO_RESULTS_DIR "C:\Users\Public\flo2d"
ENTRYPOINT ["python","/runflo.py"]