mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
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:
parent
473af0b8d1
commit
17fcda15c5
@ -24,4 +24,4 @@ COPY --from=nginx-source /nginx /usr/share/nginx
|
|||||||
|
|
||||||
USER ContainerAdministrator
|
USER ContainerAdministrator
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["/usr/share/nginx/nginx.exe"]
|
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]
|
||||||
|
@ -1 +1 @@
|
|||||||
1.15-alpine
|
1.15-1
|
||||||
|
@ -24,4 +24,4 @@ COPY --from=nginx-source /nginx /usr/share/nginx
|
|||||||
|
|
||||||
USER ContainerAdministrator
|
USER ContainerAdministrator
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENTRYPOINT ["/usr/share/nginx/nginx.exe"]
|
ENTRYPOINT ["/bin/sh", "-c", " cd /usr/share/nginx && ./nginx.exe"]
|
||||||
|
@ -1 +1 @@
|
|||||||
1.14-alpine
|
1.14-1
|
||||||
|
Loading…
Reference in New Issue
Block a user