Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (38 loc) · 1.73 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (38 loc) · 1.73 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# REF: https://hub.docker.com/_/python
# Python 3.14.7-slim-trixie
FROM python:3.14.7-slim-trixie@sha256:ce40764625a4ff50df3548277632e7f96c4e77fe75fa848aae9885476e7df5a4
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"="http://github.com/step-security/spellcheck-github-actions"
LABEL "homepage"="https://github.com/step-security/spellcheck-github-actions"
LABEL "maintainer"="step-security"
LABEL "maintainer"="step-security <security@stepsecurity.io>"
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
# REF: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
ENV PIP_CONSTRAINT=/constraint.txt
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
build-essential pkg-config curl jq \
libxml2-dev libxslt1-dev \
zlib1g-dev \
aspell hunspell \
aspell-en hunspell-en-au hunspell-en-ca hunspell-en-gb hunspell-en-us \
aspell-de hunspell-de-at hunspell-de-ch hunspell-de-de \
aspell-es hunspell-es \
aspell-fr hunspell-fr \
aspell-ru hunspell-ru \
aspell-uk hunspell-uk \
aspell-it hunspell-it \
aspell-pt-pt aspell-pt-br hunspell-pt-pt hunspell-pt-br \
&& pip3 install -r /requirements.txt \
&& pip3 install "setuptools>=83.0.0" "msgpack>=1.2.1" \
&& apt-get purge -y --auto-remove build-essential pkg-config libxml2-dev libxslt1-dev zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]