Files
rogaining_srv/SumasenLibs/excel_lib/docker/python/Dockerfile

27 lines
637 B
Docker
Raw Normal View History

2024-11-03 10:49:42 +00:00
FROM python:3.9-slim
WORKDIR /app
2024-11-05 07:46:21 +09:00
# GPGキーの更新とパッケージのインストール
RUN apt-get update --allow-insecure-repositories && \
2024-11-06 07:22:24 +00:00
apt-get install -y --allow-unauthenticated python3-dev libpq-dev postgresql-client && \
2024-11-05 07:46:21 +09:00
rm -rf /var/lib/apt/lists/*
2024-11-03 10:49:42 +00:00
# Pythonパッケージのインストール
COPY requirements.txt .
COPY setup.py .
COPY README.md .
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
# 開発用パッケージのインストール
2024-11-05 07:46:21 +09:00
RUN pip install --no-cache-dir --upgrade pip \
2024-11-03 10:49:42 +00:00
pytest \
pytest-cov \
flake8
# パッケージのインストール
RUN pip install -e .