chore: docker for developing

This commit is contained in:
Limitex
2025-11-08 22:47:55 +09:00
parent 40a9ec8227
commit 1686e9fa1e
10 changed files with 52 additions and 14 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM python:3.11-slim-bookworm
ENV POETRY_HOME="/opt/poetry"
ENV POETRY_VERSION="2.2.1"
ENV POETRY_VIRTUALENVS_PATH="/cache/.venv"
ENV POETRY_VIRTUALENVS_IN_PROJECT="false"
ENV PATH="$POETRY_HOME/bin:$PATH"
WORKDIR /app
RUN mkdir -p /cache/.venv && chmod 777 /cache/.venv
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
curl \
build-essential \
ca-certificates \
&& curl -sSL https://install.python-poetry.org | python - \
&& curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | bash \
&& apt-get update \
&& apt-get install -y task \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN poetry self add \
poetry-plugin-export \
poetry-plugin-shell
RUN task --version && poetry --version