diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f93d63 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file