forked from ansys/pyansys-geometry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
325be75
commit e4cda71
Showing
3 changed files
with
161 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Geometry service Windows-based Dockerfile | ||
# | ||
# Based on mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2019 | ||
FROM mcr.microsoft.com/dotnet/framework/runtime:4.7.2-windowsservercore-ltsc2019 | ||
|
||
# Define the working directory - /temp | ||
WORKDIR /temp | ||
|
||
# Download Microsoft Visual C++ Redistributable x64 | ||
ADD https://aka.ms/vs/17/release/VC_redist.x64.exe VC_redist.x64.exe | ||
RUN VC_redist.x64.exe /install /quiet /norestart | ||
|
||
# Define the working directory - /app | ||
WORKDIR /app | ||
|
||
# Add the binary files from the latest release | ||
COPY windows-binaries.zip . | ||
RUN mkdir tmp_folder && tar -xf windows-binaries.zip -C tmp_folder | ||
RUN xcopy "tmp_folder\DockerWindows\bin\x64\Release_Headless\net472\*" ".\" /s /e /i /h | ||
RUN xcopy "tmp_folder\DockerWindows\*" ".\" | ||
RUN del windows-binaries.zip && rmdir /s /q tmp_folder | ||
|
||
# Defining environment variables | ||
ENV LICENSE_SERVER="" | ||
ENV SERVER_ENDPOINT="0.0.0.0:50051" | ||
ENV ENABLE_TRACE=0 | ||
ENV LOG_LEVEL=2 | ||
ENV AWP_ROOT241=C:/app/unified | ||
|
||
# Add container labels | ||
LABEL org.opencontainers.image.authors="ANSYS Inc." | ||
LABEL org.opencontainers.image.vendor="ANSYS Inc." | ||
|
||
# Expose the Geometry service port | ||
EXPOSE 50051 | ||
|
||
# Define the entrypoint for the Geometry service | ||
ENTRYPOINT ["Presentation.ApiServerDMS.exe"] |