Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #266 from 3nprob/clean-docker
Browse files Browse the repository at this point in the history
Clean up apt caches in docker image
  • Loading branch information
sr-gi authored Jun 17, 2021
2 parents 3cc194d + 432d036 commit 8548f7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ FROM python:3
VOLUME ["~/.teos"]
WORKDIR /srv
ADD . /srv/python-teos
RUN apt-get update && apt-get -y install libffi-dev libssl-dev pkg-config libleveldb-dev
RUN mkdir ~/.teos && cd python-teos && pip install .
RUN apt-get update && \
apt-get -y --no-install-recommends install libffi-dev libssl-dev pkg-config libleveldb-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir ~/.teos && cd python-teos && pip install .
WORKDIR /srv/python-teos
EXPOSE 9814/tcp
ENTRYPOINT [ "/srv/python-teos/docker/entrypoint.sh" ]

0 comments on commit 8548f7d

Please sign in to comment.