Skip to content

Update Dockerfile to use Python 3.10 and improve build process #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM python:3.8-slim
FROM python:3.10-slim

ENV PYTHONUNBUFFERED 1
ENV SRC_DIR /tmp/src
ENV EXTENSION_DIR /opt/spaceone
ENV PYTHONPATH "${PYTHONPATH}:/opt"
ARG PACKAGE_VERSION

ENV PYTHONUNBUFFERED=1
ENV SRC_DIR=/tmp/src
ENV EXTENSION_DIR=/opt/spaceone
ENV PYTHONPATH="${PYTHONPATH}:/opt"

RUN apt-get update \
&& apt-get install -y wget build-essential
Expand All @@ -12,3 +14,7 @@ COPY pkg/pip_requirements.txt pip_requirements.txt
COPY templates/opt/cloudforet ${EXTENSION_DIR}

RUN pip install -r pip_requirements.txt

COPY ./src ${SRC_DIR}
WORKDIR ${SRC_DIR}
RUN pip install --no-cache-dir .
3 changes: 1 addition & 2 deletions pkg/pip_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ opentelemetry-api
opentelemetry-sdk
opentelemetry-exporter-otlp-proto-grpc
opentelemetry-instrumentation-logging
opentelemetry-exporter-prometheus
spaceone-core
opentelemetry-exporter-prometheus
Loading