test images: Fixes Windows nginx images entrypoints

nginx expects to find its conf and logs folder locally, and fails if it cannot find them.
cd-ing into the the nginx folder solves this issue. This is a similar approach to the
echoserver image, which also uses nginx.
This commit is contained in:
Claudiu Belu 2021-02-24 10:58:38 +00:00
parent 473af0b8d1
commit 17fcda15c5
4 changed files with 4 additions and 4 deletions

View File

@ -24,4 +24,4 @@ COPY --from=nginx-source /nginx /usr/share/nginx
USER ContainerAdministrator
EXPOSE 80
ENTRYPOINT ["/usr/share/nginx/nginx.exe"]
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]

View File

@ -1 +1 @@
1.15-alpine
1.15-1

View File

@ -24,4 +24,4 @@ COPY --from=nginx-source /nginx /usr/share/nginx
USER ContainerAdministrator
EXPOSE 80
ENTRYPOINT ["/usr/share/nginx/nginx.exe"]
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]

View File

@ -1 +1 @@
1.14-alpine
1.14-1