mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
18 lines
554 B
Docker
18 lines
554 B
Docker
FROM alpine:3.10
|
|
WORKDIR /app
|
|
COPY requirements.txt /app/
|
|
RUN apk add --update --no-cache python2 py2-pip py2-gevent \
|
|
py2-flask py2-requests py2-pygments py2-redis \
|
|
py2-cffi py2-icu bash vim gawk sed \
|
|
&& apk add --no-cache --virtual build-deps python2-dev \
|
|
build-base git \
|
|
&& pip install -r requirements.txt \
|
|
&& apk del build-deps
|
|
COPY . /app
|
|
# fetching cheat sheets
|
|
RUN apk add --update --no-cache git \
|
|
&& mkdir -p /root/.cheat.sh/log/ \
|
|
&& python2 lib/fetch.py fetch-all
|
|
ENTRYPOINT ["python2"]
|
|
CMD ["bin/srv.py"]
|