mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-31 10:19:54 +03:00
node, grunt, compass added to dockerfile,
rm compose/pycharm/jdk.table.xml
This commit is contained in:
parent
d445b944ec
commit
266ffdf649
|
@ -1,6 +1,8 @@
|
|||
FROM python:2.7
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
RUN apt-get update && apt-get install -y ruby-compass
|
||||
|
||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||
ADD ./requirements /requirements
|
||||
ADD ./requirements.txt /requirements.txt
|
||||
|
@ -8,8 +10,29 @@ ADD ./requirements.txt /requirements.txt
|
|||
RUN pip install -r /requirements.txt
|
||||
RUN pip install -r /requirements/local.txt
|
||||
|
||||
# Install Node.js
|
||||
RUN \
|
||||
cd /tmp && \
|
||||
wget http://nodejs.org/dist/node-latest.tar.gz && \
|
||||
tar xvzf node-latest.tar.gz && \
|
||||
rm -f node-latest.tar.gz && \
|
||||
cd node-v* && \
|
||||
./configure && \
|
||||
CXX="g++ -Wno-unused-local-typedefs" make && \
|
||||
CXX="g++ -Wno-unused-local-typedefs" make install && \
|
||||
cd /tmp && \
|
||||
rm -rf /tmp/node-v* && \
|
||||
npm install -g npm && \
|
||||
printf '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
|
||||
|
||||
RUN groupadd -r django && useradd -r -g django django
|
||||
ADD . /app
|
||||
|
||||
RUN npm install -g grunt grunt-cli
|
||||
RUN npm install
|
||||
|
||||
RUN grunt build
|
||||
|
||||
RUN chown -R django /app
|
||||
|
||||
ADD ./compose/django/gunicorn.sh /gunicorn.sh
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
<application>
|
||||
<component name="ProjectJdkTable">
|
||||
<jdk version="2">
|
||||
<name value="Remote Python 2.7.9 (ssh://docker@localhost:2222/usr/local/bin/python)" />
|
||||
<type value="Python SDK" />
|
||||
<homePath value="ssh://docker@localhost:2222/usr/local/bin/python" />
|
||||
<roots>
|
||||
<classPath>
|
||||
<root type="composite" />
|
||||
</classPath>
|
||||
<sourcePath>
|
||||
<root type="composite" />
|
||||
</sourcePath>
|
||||
</roots>
|
||||
<additional HOST="localhost" PORT="2222" ANONYMOUS="false" USERNAME="docker" PASSWORD="" PRIVATE_KEY_FILE="$PROJECT_DIR$/compose/pycharm/.ssh_keys_to_docker/id_rsa" MY_KNOWN_HOSTS_FILE="" PASSPHRASE="" USE_KEY_PAIR="true" INTERPRETER_PATH="/usr/local/bin/python" HELPERS_PATH="/home/docker/.pycharm_helpers/" INITIALIZED="false" VALID="true" SKELETONS_PATH="" />
|
||||
</jdk>
|
||||
</component>
|
||||
</application>
|
||||
|
Loading…
Reference in New Issue
Block a user