Skip to content

Commit

Permalink
Merge pull request #19 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 7354bc8 + eae6ce4 commit faba3b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 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-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"]
3 changes: 0 additions & 3 deletions pkg/pip_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
spaceone-core
spaceone-api
schematics
boto3
pytz
2 changes: 0 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
license='Apache License 2.0',
packages=find_packages(),
install_requires=[
'spaceone-core',
'spaceone-api',
'schematics',
'boto3',
'pytz'
],
zip_safe=False,
Expand Down

0 comments on commit faba3b4

Please sign in to comment.