Skip to content

Commit c56ee01

Browse files
committed
feat: add Dockerfile for Python 3.13 with Pipenv setup
1 parent a610da0 commit c56ee01

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dockerfiles/python-3.13.Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM python:3.13-alpine
2+
3+
RUN pip install --no-cache-dir "pipenv>=2024.4.0"
4+
5+
COPY Pipfile /app/Pipfile
6+
COPY Pipfile.lock /app/Pipfile.lock
7+
8+
WORKDIR /app
9+
10+
ENV LANG="en_US.UTF-8"
11+
ENV PIPENV_VENV_IN_PROJECT=1
12+
13+
RUN pipenv install
14+
15+
# Force environment creation
16+
RUN pipenv run python3 -c "import sqlparse" # Ensure the deps are available
17+
RUN pipenv --venv
18+
19+
RUN mkdir -p /app-cached
20+
RUN mv /app/.venv /app-cached/.venv
21+
22+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="Pipfile,Pipfile.lock"

0 commit comments

Comments
 (0)