generated from forest-extension/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
forest-extension-admin
committed
Jan 21, 2024
1 parent
7a42bb3
commit 2a8cb04
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM cloudforet/python-core:2.0 | ||
ARG REPO_NAME | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV SPACEONE_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 \ | ||
pip install --upgrade --pre spaceone-inventory | ||
|
||
COPY src ${SRC_DIR} | ||
WORKDIR ${SRC_DIR} | ||
RUN python3 setup.py install && rm -rf /tmp/* | ||
|
||
EXPOSE ${SPACEONE_PORT} | ||
|
||
ENTRYPOINT ["spaceone"] | ||
CMD ["run", "plugin-server", "plugin"] |