mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-02 03:00:23 +03:00
unnecessary python packages removed from debug/Dockerfile
This commit is contained in:
parent
f452c5cffa
commit
24fdfbbf5b
|
@ -1,7 +1,9 @@
|
||||||
FROM python:2.7
|
FROM python:2.7
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ruby-compass
|
RUN apt-get update && \
|
||||||
|
apt-get install -y ruby-compass && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||||
ADD ./requirements /requirements
|
ADD ./requirements /requirements
|
||||||
|
@ -11,19 +13,18 @@ RUN pip install -r /requirements.txt
|
||||||
RUN pip install -r /requirements/local.txt
|
RUN pip install -r /requirements/local.txt
|
||||||
|
|
||||||
# Install Node.js
|
# Install Node.js
|
||||||
RUN \
|
RUN cd /tmp && \
|
||||||
cd /tmp && \
|
wget http://nodejs.org/dist/node-latest.tar.gz && \
|
||||||
wget http://nodejs.org/dist/node-latest.tar.gz && \
|
tar xvzf node-latest.tar.gz && \
|
||||||
tar xvzf node-latest.tar.gz && \
|
rm -f node-latest.tar.gz && \
|
||||||
rm -f node-latest.tar.gz && \
|
cd node-v* && \
|
||||||
cd node-v* && \
|
./configure && \
|
||||||
./configure && \
|
CXX="g++ -Wno-unused-local-typedefs" make && \
|
||||||
CXX="g++ -Wno-unused-local-typedefs" make && \
|
CXX="g++ -Wno-unused-local-typedefs" make install && \
|
||||||
CXX="g++ -Wno-unused-local-typedefs" make install && \
|
cd /tmp && \
|
||||||
cd /tmp && \
|
rm -rf /tmp/node-v* && \
|
||||||
rm -rf /tmp/node-v* && \
|
npm install -g npm && \
|
||||||
npm install -g npm && \
|
printf '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
|
||||||
printf '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
|
|
||||||
|
|
||||||
RUN npm install -g grunt-cli
|
RUN npm install -g grunt-cli
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
FROM {{ cookiecutter.repo_name|replace('_', '') }}_django
|
FROM {{ cookiecutter.repo_name|replace('_', '') }}_django
|
||||||
|
|
||||||
# Install setuptools, pip and OpenSSH
|
# Install OpenSSH
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-setuptools python3-pip python3-setuptools openssh-server && \
|
RUN apt-get -y install openssh-server
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# sshd needs this directory to run
|
# sshd needs this directory to run
|
||||||
RUN mkdir -p /var/run/sshd
|
RUN mkdir -p /var/run/sshd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user