-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from stat-kwon/master
Change build files
- Loading branch information
Showing
3 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
spaceone-core | ||
spaceone-api | ||
schematics | ||
boto3 | ||
pytz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters