forked from wemake-services/wemake-python-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.33 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
# ========================================
# = Warning! =
# ========================================
# This is Github Action docker-based image.
# It is not intended for local development!
#
# You can find docs about how to setup your own Github Action here:
# https://wemake-python-styleguide.rtfd.io/en/latest/pages/usage/integrations/github-actions.html
#
# It can still be used as a raw image for your own containers.
# See `action.yml` in case you want to learn more about GitHub Actions.
# See it live:
# https://github.com/wemake-services/wemake-python-styleguide/actions
#
# This image is also available on Dockerhub:
# https://hub.docker.com/r/wemakeservices/wemake-python-styleguide
FROM python:3.12.7-alpine
LABEL maintainer="[email protected]"
LABEL vendor="wemake.services"
ENV WPS_VERSION='0.19.2'
ENV REVIEWDOG_VERSION='v0.20.3'
RUN apk add --no-cache bash git wget
RUN pip install "wemake-python-styleguide==$WPS_VERSION" \
# Installing reviewdog to optionally comment on pull requests:
&& wget -O - -q 'https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh' \
| sh -s -- -b /usr/local/bin/ "$REVIEWDOG_VERSION"
# Custom configuration for this action:
COPY ./scripts/action-config.cfg /
# Entrypoint:
COPY ./scripts/entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]