Skip to content

Instantly share code, notes, and snippets.

@titovanton
Created October 29, 2020 13:29
Show Gist options
  • Save titovanton/ecd3757bb5e69d4ebf6ede34ad4e48aa to your computer and use it in GitHub Desktop.
Save titovanton/ecd3757bb5e69d4ebf6ede34ad4e48aa to your computer and use it in GitHub Desktop.
FROM python:3.7
RUN mkdir /app
WORKDIR /app
# make docker user
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# turn off bell
RUN echo 'set bell-style none' >> ~/.inputrc
RUN apt-get update
RUN apt-get install -y build-essential python3-dev \
python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 \
libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info
ADD ./requirements.pip /tmp/
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r /tmp/requirements.pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment