Skip to content
Snippets Groups Projects
Commit 19ab0db2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix npm install in docker

parent b7190a03
No related branches found
No related tags found
3 merge requests!316Merge 1.0.1,!3151.0.1 into master,!313Docker issue
...@@ -8,6 +8,17 @@ RUN pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.u ...@@ -8,6 +8,17 @@ RUN pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.u
ADD . /code/ ADD . /code/
RUN cp local_settings_ci.py smash/smash/local_settings.py RUN cp local_settings_ci.py smash/smash/local_settings.py
WORKDIR /code/smash WORKDIR /code/smash
ENV NODE_VERSION=12.6.0
RUN apt install -y curl
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN node --version
RUN npm --version
RUN npm install
ENTRYPOINT [ "/bin/sh" ] ENTRYPOINT [ "/bin/sh" ]
CMD [ "manage.py runserver 0.0.0.0:8002" ] CMD [ "manage.py runserver 0.0.0.0:8002" ]
......
...@@ -4,6 +4,8 @@ SECRET_KEY = 'Paste long random string here' # Insert long random string ...@@ -4,6 +4,8 @@ SECRET_KEY = 'Paste long random string here' # Insert long random string
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
SERVE_STATIC = True
# Database # Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment