This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (43 loc) · 1.73 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
39
40
41
42
43
44
45
46
47
48
49
50
ARG BASE_TAG=act-latest
FROM catthehacker/ubuntu:${BASE_TAG}
ARG TARGETARCH
ARG PYTHON_RUNTIME_MINOR
# Force pip to use gcc to compile wheels
ENV CC=gcc
# Limit the number of npm sockets
ENV NPM_CONFIG_MAXSOCKETS=10
# Increase pip/poetry timeout
ENV PIP_REQUESTS_TIMEOUT=60
ENV POETRY_REQUESTS_TIMEOUT=60
# python
# renovate: datasource=github-releases depName=indygreg/python-build-standalone
ARG PYTHON_BUILD_VERSION=20240415
COPY python.sh .
RUN ./python.sh && rm python.sh
ENV PATH="/python/bin:$PATH"
# poetry
# renovate: datasource=github-releases depName=python-poetry/poetry
ARG POETRY_VERSION=1.8.2
RUN pip3 install --no-cache-dir "poetry==${POETRY_VERSION}"
# yq
# renovate: datasource=github-releases depName=mikefarah/yq
ARG YQ_VERSION=v4.43.1
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${TARGETARCH} -O /usr/bin/yq && \
chmod +x /usr/bin/yq
# rclone
# renovate: datasource=github-releases depName=rclone/rclone
ARG RCLONE_VERSION=v1.66.0
ENV RCLONE_ARCHIVE=rclone-${RCLONE_VERSION}-linux-${TARGETARCH}
RUN wget https://github.com/rclone/rclone/releases/download/${RCLONE_VERSION}/${RCLONE_ARCHIVE}.zip && \
unzip ${RCLONE_ARCHIVE}.zip && \
mv rclone-${RCLONE_VERSION}-linux-${TARGETARCH}/rclone /usr/bin/rclone && \
rm -rf ${RCLONE_ARCHIVE}*
# hugo
# renovate: datasource=github-releases depName=gohugoio/hugo extractVersion=^v?(?<version>.*)$
ARG HUGO_VERSION=0.125.3
ENV HUGO_ARCHIVE=hugo_${HUGO_VERSION}_linux-${TARGETARCH}
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_ARCHIVE}.tar.gz && \
mkdir hugo_release && \
tar xzf ${HUGO_ARCHIVE}.tar.gz -C hugo_release && \
mv hugo_release/hugo /usr/bin/hugo && \
rm -rf ${HUGO_ARCHIVE}* hugo_release