-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Junjie Gao <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
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,21 @@ | ||
# Use Windows Nano Server image as the base image | ||
FROM mcr.microsoft.com/windows/nanoserver:ltsc2022 | ||
|
||
# Download the Python installer | ||
ADD https://www.python.org/ftp/python/3.8.0/python-3.8.0.exe C:\\temp\\python-installer.exe | ||
|
||
# Install Python | ||
RUN C:\\temp\\python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 && \ | ||
del C:\\temp\\python-installer.exe | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the Python script into the container at the working directory | ||
COPY download-server.py ./ | ||
|
||
# Make port 8000 available to the world outside this container | ||
EXPOSE 8000 | ||
|
||
# Command to run e2e-server.py when the container launches | ||
CMD ["python", ".\download-server.py"] |
4 changes: 2 additions & 2 deletions
4
.github/e2e/e2e-server.py → ...ub/e2e/download-server/download-server.py
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