Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Dockerfile smell DL3008 #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions metrics/log_collectors/regex_extractor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ FROM ubuntu:16.04

# TODO: Just use community Python 3.6 image per conversation with Atin.

RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common=0.96.*

RUN add-apt-repository ppa:deadsnakes/ppa
# runtime dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
tcl \
tk \
vim \
mlocate \
wget \
gcc \
tcl=8.6.* \
tk=8.6.* \
vim=2:7.4.* \
mlocate=0.26-* \
wget=1.17.* \
gcc=4:5.3.* \
&& rm -rf /var/lib/apt/lists/*

ENV PYTHON_VERSION 3.6.3

RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
make \
musl-dev \
gcc=4:5.3.* \
make=4.1-* \
musl-dev=1.1.* \
"python3.6" \
python3-pip \
cron
python3-pip=8.1.* \
cron=3.0pl1-*

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 3
Expand Down