1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 02:25:53 +03:00
cheat.sh/Dockerfile

20 lines
651 B
Docker
Raw Normal View History

2020-07-27 21:06:14 +03:00
FROM alpine:latest
# fetching cheat sheets
## installing dependencies
RUN apk add --update --no-cache git py3-six py3-pygments py3-yaml py3-gevent \
libstdc++ py3-colorama py3-requests py3-icu py3-redis
## building missing python packages
RUN apk add --no-cache --virtual build-deps py3-pip g++ python3-dev \
2020-07-28 11:33:28 +03:00
&& pip3 install --no-cache-dir rapidfuzz colored polyglot pycld2 \
&& apk del build-deps
2020-07-27 21:06:14 +03:00
## copying
WORKDIR /app
COPY . /app
2020-07-27 21:06:14 +03:00
RUN mkdir -p /root/.cheat.sh/log/ \
&& python3 lib/fetch.py fetch-all
# installing server dependencies
2020-07-28 15:23:51 +03:00
RUN apk add --update --no-cache py3-jinja2 py3-flask
2020-07-27 21:06:14 +03:00
ENTRYPOINT ["python3"]
2018-07-31 06:44:47 +03:00
CMD ["bin/srv.py"]