Skip to content

Commit

Permalink
feat: use alpine in docker image instead of debian (#71)
Browse files Browse the repository at this point in the history
* feat: use alpine in docker image instead of debian

* chore: optimize layers

* chore: apply review change suggestion

Co-authored-by: Javier Julio <[email protected]>

---------

Co-authored-by: Javier Julio <[email protected]>
  • Loading branch information
nicolas2mey and javierjulio authored Aug 22, 2024
1 parent 4102a8a commit 6ca5dcc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
FROM python:3.11.4-buster
FROM python:3.11.4-alpine

ENV REVIEWDOG_VERSION=v0.20.1

RUN set -eux \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
git \
wget \
&& wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} \
&& pip install detect-secrets[word_list]
RUN apk --no-cache add git gcc musl-dev \
&& wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION} \
&& pip install detect-secrets[word_list]

COPY baseline2rdf.py /usr/local/bin/baseline2rdf
COPY entrypoint.sh /entrypoint.sh
Expand Down

0 comments on commit 6ca5dcc

Please sign in to comment.