forked from fluxcd/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (32 loc) · 657 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
28
29
30
31
32
33
34
35
36
37
ARG HUGO_VERSION
FROM fluxcd/website:hugo-${HUGO_VERSION}-extended
COPY --from=golang:1.21-alpine /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
RUN apk update && \
apk add --no-cache \
bash \
coreutils \
curl \
gcc \
grep \
jq \
libc-dev \
libffi-dev \
linux-headers \
make \
nodejs \
npm \
openssh-client \
py3-pip \
python3 \
python3-dev \
rsync
COPY requirements.txt /tmp
RUN python3 -m pip install -r /tmp/requirements.txt
COPY package.json package-lock.json /site/
RUN npm i
RUN git config --global --add safe.directory /site
# VOLUME /site # provided by upstream
# WORKDIR /site
# EXPOSE 1313
ENTRYPOINT []