AlpacaGuanacoJaGPT1B / Dockerfile
OzoneAsai's picture
Create Dockerfile
2e95c5b verified
raw
history blame
No virus
590 Bytes
# ベースイメージとして公式のPythonイメージを使用
FROM python:3.9-slim
# 作業ディレクトリを設定
WORKDIR /app
# requirements.txtをコピーしてパッケージをインストール
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Redisをインストール
RUN apt-get update && apt-get install -y redis-server
# アプリケーションのコードをコピー
COPY . .
# Redisをバックグラウンドで起動してからアプリケーションを起動
CMD redis-server --daemonize yes && python app.py