From cc7ac8baf364de3c14e470d7074eb09465420f66 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Mon, 18 Dec 2023 23:19:45 +0900 Subject: [PATCH] feat: modify docker run command at Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a8ad91..84ebde7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM cloudforet/python-core:1.12 +FROM cloudforet/python-core:2.0 ARG PACKAGE_VERSION ENV PYTHONUNBUFFERED 1 ENV SPACEONE_PORT 50051 @@ -9,7 +9,8 @@ ENV PACKAGE_VERSION=$PACKAGE_VERSION COPY pkg/pip_requirements.txt pip_requirements.txt -RUN pip install --upgrade -r pip_requirements.txt +RUN pip install --upgrade pip && \ + pip install --upgrade -r pip_requirements.txt COPY src ${SRC_DIR} WORKDIR ${SRC_DIR} @@ -21,4 +22,4 @@ RUN pip install --upgrade spaceone-api EXPOSE ${SPACEONE_PORT} ENTRYPOINT ["spaceone"] -CMD ["grpc", "spaceone.plugin", "-m", "/opt"] +CMD ["grpc", "grpc-server", "spaceone.identity", "-m", "/opt"]