Skip to content

Commit

Permalink
Merge pull request #29 from ImMin5/master
Browse files Browse the repository at this point in the history
Modify docker run command at Dockerfile
  • Loading branch information
ImMin5 authored Dec 18, 2023
2 parents f6b8ce4 + a2f277d commit 1fc3a4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}
Expand All @@ -21,4 +22,4 @@ RUN pip install --upgrade spaceone-api
EXPOSE ${SPACEONE_PORT}

ENTRYPOINT ["spaceone"]
CMD ["grpc", "spaceone.plugin", "-m", "/opt"]
CMD ["run", "grpc-server", "spaceone.plugin", "-m", "/opt"]

0 comments on commit 1fc3a4f

Please sign in to comment.