-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
27 lines (22 loc) · 1014 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# REF: https://hub.docker.com/_/python
FROM python:3.13.0-slim-bookworm
LABEL "com.github.actions.name"="Spellcheck Action"
LABEL "com.github.actions.description"="Check spelling of files in repository"
LABEL "com.github.actions.icon"="clipboard"
LABEL "com.github.actions.color"="green"
LABEL "repository"="https://github.com/rojopolis/spellcheck-github-actions"
LABEL "homepage"="https://github.com/marketplace/actions/github-spellcheck-action"
LABEL "maintainer"="rojopolis <[email protected]>"
COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt /requirements.txt
COPY constraint.txt /constraint.txt
COPY spellcheck.yaml /spellcheck.yaml
COPY pwc.py /pwc.py
ENV PIP_CONSTRAINT=/constraint.txt
RUN pip3 install -r /requirements.txt
# REF: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
RUN apt-get update && apt-get install -y \
aspell aspell-en aspell-de aspell-es aspell-fr \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]