mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
23 lines
No EOL
821 B
Docker
23 lines
No EOL
821 B
Docker
FROM python:2.7-slim
|
|
|
|
RUN echo "Upgrading distro..." && \
|
|
apt-get update > /dev/null && \
|
|
apt-get upgrade -y > /dev/null && \
|
|
echo "Installing dependencies..." && \
|
|
apt-get install -y git python-distribute > /dev/null && \
|
|
pip install --no-cache-dir virtualenv psycopg2 pymysql > /dev/null && \
|
|
echo "Optimizing space..." && \
|
|
apt-get remove --purge -y software-properties-common > /dev/null && \
|
|
apt-get autoremove -y > /dev/null && \
|
|
apt-get clean > /dev/null && \
|
|
apt-get autoclean > /dev/null && \
|
|
echo -n > /var/lib/apt/extended_states && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
rm -rf /usr/share/man/?? && \
|
|
rm -rf /usr/share/man/??_*
|
|
|
|
COPY ./docker-entrypoint.sh /docker-entrypoint
|
|
RUN chmod +x /docker-entrypoint
|
|
|
|
ENTRYPOINT ["/docker-entrypoint"]
|
|
CMD ["status"] |