unify ENTRYPOINTS in dockerfiles (no /bin/sh)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
91663aa541
commit
28956fb240
4 changed files with 5 additions and 5 deletions
|
@ -10,4 +10,4 @@ RUN apk add --no-cache \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
COPY --from=builder /catalogservice /catalogservice
|
COPY --from=builder /catalogservice /catalogservice
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT /catalogservice
|
ENTRYPOINT ["/catalogservice"]
|
||||||
|
|
|
@ -12,5 +12,5 @@ RUN apk add --no-cache \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
COPY --from=builder /productcatalogservice /productcatalogservice
|
COPY --from=builder /productcatalogservice /productcatalogservice
|
||||||
EXPOSE 3550
|
EXPOSE 3550
|
||||||
ENTRYPOINT /productcatalogservice
|
ENTRYPOINT ["/productcatalogservice"]
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,11 @@ FROM grpc/python:1.0
|
||||||
ENV PYTHONUNBUFFERED=0
|
ENV PYTHONUNBUFFERED=0
|
||||||
|
|
||||||
# add files into working directory
|
# add files into working directory
|
||||||
ADD ./*.py /home/
|
COPY . /home/
|
||||||
WORKDIR /home
|
WORKDIR /home
|
||||||
|
|
||||||
# set listen port
|
# set listen port
|
||||||
ENV PORT "8080"
|
ENV PORT "8080"
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT python /home/recommendation_server.py
|
ENTRYPOINT ["python", "/home/recommendation_server.py"]
|
||||||
|
|
|
@ -11,4 +11,4 @@ FROM alpine as release
|
||||||
COPY --from=builder /shippingservice /shippingservice
|
COPY --from=builder /shippingservice /shippingservice
|
||||||
ENV APP_PORT=50051
|
ENV APP_PORT=50051
|
||||||
EXPOSE 50051
|
EXPOSE 50051
|
||||||
ENTRYPOINT /shippingservice
|
ENTRYPOINT ["/shippingservice"]
|
||||||
|
|
Loading…
Reference in a new issue