-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (15 loc) · 893 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Dockerfile
FROM python:3.12
# readmeai_autoをここに配置
WORKDIR /usr/src/app
RUN git clone --recurse-submodules https://github.com/nobu007/readmeai_auto.git
RUN pip install -r readmeai_auto/requirements.txt
RUN apt update && apt install -y curl && \
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list >/dev/null && \
apt update && apt install -y gh
COPY . /usr/src/app
# GitHub Actionsのデフォルト作業ディレクトリに合わせる
WORKDIR /github/workspace
ENTRYPOINT ["python", "/usr/src/app/main.py"]