-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (19 loc) · 840 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
FROM alpine:latest as build
ARG DISTRIBUTION=linux
ARG CPU_ARCH=amd64
ARG CVWONDER_VERSION=latest
WORKDIR /app
RUN apk update && \
apk add --no-cache \
wget curl
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq && \
chmod +x /usr/local/bin/jq
RUN VERSION=$(curl -s "https://api.github.com/repos/germainlefebvre4/cvwonder/releases/tags/${CVWONDER_VERSION}" | jq -r '.tag_name') && \
curl -L -o /app/cvwonder "https://github.com/germainlefebvre4/cvwonder/releases/download/${VERSION}/cvwonder_${DISTRIBUTION}_${CPU_ARCH}" && \
chmod +x cvwonder
FROM alpine:latest
COPY --from=build /app/cvwonder /usr/local/bin/cvwonder
WORKDIR /cv
ENTRYPOINT ["cvwonder"]
CMD ["serve", "--input=cv.yml", "--output=generated/", "--theme=default", "--watch"]