forked from veekun/pokedex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (20 loc) · 821 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
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"]