mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-31 10:19:54 +03:00
fix for envs
This commit is contained in:
parent
275ed60a50
commit
f452c5cffa
|
@ -1,9 +1,7 @@
|
|||
FROM {{ cookiecutter.repo_name|replace('_', '') }}_django
|
||||
|
||||
# Install setuptools, pip and OpenSSH
|
||||
RUN \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-setuptools python3-pip python3-setuptools openssh-server && \
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python-pip python-setuptools python3-pip python3-setuptools openssh-server && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# sshd needs this directory to run
|
||||
|
|
|
@ -7,6 +7,7 @@ USER=docker_{{ cookiecutter.repo_name }}
|
|||
# rename django username to docker_{{ cookiecutter.repo_name }}
|
||||
usermod -l $USER -m -d /home/$USER django
|
||||
groupmod -n $USER django
|
||||
sed -i "s/django/$USER/g" /tmp/environment
|
||||
|
||||
mkdir /home/$USER/.ssh
|
||||
cat /app/compose/debug/keys_to_docker/id_rsa.pub > /home/$USER/.ssh/authorized_keys
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.5",
|
||||
"grunt-cli": "^0.1.13",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-bg-shell": "~2.3.1",
|
||||
"connect-livereload": "~0.3.2",
|
||||
|
|
Loading…
Reference in New Issue
Block a user