diff --git a/Dockerfile b/Dockerfile index 0b52e1a3990087a573d328adcf7ee6df58872505..86aeab54a79ceda351ffddb98db3997bffe1524a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,17 @@ RUN pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.u ADD . /code/ RUN cp local_settings_ci.py smash/smash/local_settings.py 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" ] CMD [ "manage.py runserver 0.0.0.0:8002" ] diff --git a/local_settings_ci.py b/local_settings_ci.py index 7838de32e0637fdcf67aeeb5f8a6f80905794659..d4a43d46adad89e6967812967b38389451d1a3a3 100644 --- a/local_settings_ci.py +++ b/local_settings_ci.py @@ -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! DEBUG = True +SERVE_STATIC = True + # Database # https://docs.djangoproject.com/en/1.10/ref/settings/#databases