Skip to content

Commit

Permalink
Use official python alpine for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Jun 4, 2019
1 parent fd8af5f commit ce8a3ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
17 changes: 1 addition & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
FROM ubuntu
FROM python:3.7-alpine

MAINTAINER Rémi Alvergnat <toilal.dev@gmail.com>

ENV LANG C.UTF-8
ENV PYENV_ROOT /root/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

WORKDIR /root

COPY docker/base_dependencies.txt /root/base_dependencies.txt
RUN apt-get update && \
apt-get install -y $(cat /root/base_dependencies.txt) && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/base_dependencies.txt /etc/dpkg/dpkg.cfg.d/02apt-speedup

ENV PYTHONDONTWRITEBYTECODE true
RUN git clone https://github.com/yyuu/pyenv.git /root/.pyenv
RUN pyenv install 3.4.3 && pyenv global 3.4.3

COPY / /root/guessit/

WORKDIR /root/guessit/

RUN pip install -e .
Expand Down
13 changes: 0 additions & 13 deletions docker/base_dependencies.txt

This file was deleted.

0 comments on commit ce8a3ea

Please sign in to comment.