Skip to content

Commit

Permalink
Merge pull request #13 from stat-kwon/master
Browse files Browse the repository at this point in the history
Change build files
  • Loading branch information
stat-kwon authored Jan 6, 2024
2 parents 4cf251f + 649d992 commit 36223e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
FROM python:3.8-slim
FROM cloudforet/python-core:1

ENV PYTHONUNBUFFERED 1
ENV SPACEONE_PORT 50051
ENV CLOUDONE_PORT 50051
ENV SERVER_TYPE grpc
ENV PKG_DIR /tmp/pkg
ENV SRC_DIR /tmp/src

RUN apt update && apt upgrade -y

COPY pkg/*.txt ${PKG_DIR}/

RUN pip install --upgrade pip && \
pip install --upgrade -r ${PKG_DIR}/pip_requirements.txt

ARG CACHEBUST=1
RUN pip install --upgrade --pre spaceone-core spaceone-api
pip install --upgrade --use-deprecated=legacy-resolver -r ${PKG_DIR}/pip_requirements.txt && \
pip install --upgrade spaceone-api

COPY src ${SRC_DIR}

WORKDIR ${SRC_DIR}
RUN python3 setup.py install && \
rm -rf /tmp/*

EXPOSE ${SPACEONE_PORT}
EXPOSE ${CLOUDONE_PORT}

ENTRYPOINT ["spaceone"]
CMD ["grpc", "cloudforet.cost_analysis"]
CMD ["grpc", "spaceone.cost_analysis"]
2 changes: 0 additions & 2 deletions pkg/pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
spaceone-core
spaceone-api
schematics
google-api-python-client
pandas-gbq
Expand Down
1 change: 0 additions & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
license='Apache License 2.0',
packages=find_packages(),
install_requires=[
'spaceone-core',
'spaceone-api',
'schematics',
'google-api-python-client',
Expand Down

0 comments on commit 36223e8

Please sign in to comment.