feat:Python3.12対応

This commit is contained in:
yono 2025-05-22 17:29:32 +09:00
parent 41d92378c2
commit 5112e42e45
4 changed files with 412 additions and 387 deletions

View File

@ -1,15 +1,15 @@
FROM python:3.9
FROM python:3.12-slim-bookworm
ENV TZ="Asia/Tokyo"
# pythonの標準出力をバッファリングしないフラグ
ENV PYTHONUNBUFFERED=1
# pythonのバイトコードを生成しないフラグ
ENV PYTHONDONTWRITEBYTECODE=1
WORKDIR /usr/src/app
COPY Pipfile Pipfile.lock ./
RUN \
apt update -y && \
# パッケージのセキュリティアップデートのみを適用するコマンド
apt install -y unattended-upgrades && \
unattended-upgrades && \
pip install --upgrade pip wheel setuptools && \
pip install pipenv --no-cache-dir && \
pipenv install --system --deploy && \
pip uninstall -y pipenv virtualenv-clone virtualenv

View File

@ -33,7 +33,7 @@ autopep8 = "*"
flake8 = "*"
[requires]
python_version = "3.9"
python_version = "3.12"
[pipenv]
allow_prereleases = true

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@
## 実行
- VSCode上で「F5」キーを押下すると、Webアプリケーションのサーバーが起動する
- 「<http://localhost:8000/maintlogin>」にアクセスし、ログイン画面が表示されていれば成功
- 「<http://localhost:8000/login/maintlogin>」にアクセスし、ログイン画面が表示されていれば成功
## フォルダ構成