mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-21 13:10:53 +08:00
Merge pull request #273 from c-bata/use-python310-in-docker
Use Python 3.10 in Docker image
This commit is contained in:
+5
-6
@@ -11,21 +11,21 @@ ADD ./optuna_dashboard/ts/ /usr/src/optuna_dashboard/ts
|
||||
RUN mkdir -p /usr/src/optuna_dashboard/public
|
||||
RUN npm run build:prd
|
||||
|
||||
FROM python:3.8-buster AS python-builder
|
||||
FROM python:3.10-buster AS python-builder
|
||||
|
||||
WORKDIR /usr/src
|
||||
RUN pip install --upgrade pip setuptools
|
||||
RUN pip install --progress-bar off PyMySQL[rsa] psycopg2-binary gunicorn
|
||||
RUN pip install --progress-bar off PyMySQL[rsa] psycopg2-binary gunicorn optuna-fast-fanova
|
||||
|
||||
ADD ./setup.cfg /usr/src/setup.cfg
|
||||
ADD ./pyproject.toml /usr/src/pyproject.toml
|
||||
ADD ./setup.py /usr/src/setup.py
|
||||
ADD ./optuna_dashboard /usr/src/optuna_dashboard
|
||||
COPY --from=front-builder /usr/src/optuna_dashboard/public/ /usr/src/optuna_dashboard/public/
|
||||
RUN pip install --progress-bar off .
|
||||
|
||||
FROM python:3.8-slim-buster as runner
|
||||
FROM python:3.10-slim-buster as runner
|
||||
|
||||
COPY --from=python-builder /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||
COPY --from=python-builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
|
||||
COPY --from=python-builder /usr/local/bin/optuna-dashboard /usr/local/bin/optuna-dashboard
|
||||
|
||||
RUN mkdir /app
|
||||
@@ -33,4 +33,3 @@ WORKDIR /app
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["optuna-dashboard", "--port", "8080", "--host", "0.0.0.0", "--server", "gunicorn"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user