24 lines
513 B
Docker
24 lines
513 B
Docker
FROM klakegg/hugo:alpine-ci
|
|
|
|
# Install git and ssh
|
|
RUN apk add --no-cache git openssh rsync jq curl
|
|
|
|
# Install python/pip
|
|
ENV PYTHONUNBUFFERED=1
|
|
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
|
|
RUN python3 -m ensurepip
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
|
|
WORKDIR /app
|
|
|
|
# Install requirements
|
|
COPY requirements.txt requirements.txt
|
|
COPY main.py main.py
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Add scripts
|
|
COPY scripts scripts
|
|
RUN chmod +x scripts/*.sh
|
|
|
|
CMD python main.py
|