Final changes
This commit is contained in:
parent
c18fb883cc
commit
c88b94f20f
1 changed files with 13 additions and 10 deletions
23
Dockerfile
23
Dockerfile
|
@ -61,23 +61,26 @@ COPY . /build
|
||||||
|
|
||||||
# Copy code required for runtime to the /app folder.
|
# Copy code required for runtime to the /app folder.
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
RUN cp -r publichealth feedler yarn.lock manage.py /app/
|
RUN cp -r publichealth feedler yarn.lock manage.py package.json Gruntfile.js /app/
|
||||||
|
|
||||||
# node / yarn
|
|
||||||
RUN rm -rf node_modules
|
RUN curl -fsSLO https://deb.nodesource.com/setup_18.x && chmod +x setup_18.x && ./setup_18.x
|
||||||
RUN yarn install
|
RUN apt install -y nodejs
|
||||||
|
RUN npm install -g grunt-cli
|
||||||
|
|
||||||
# Collect static data into /app/static.
|
# Collect static data into /app/static.
|
||||||
RUN . /venv/bin/activate && \
|
#RUN . /venv/bin/activate && \
|
||||||
DJANGO_STATIC_ROOT=/app/static SECRET_KEY=sl DJANGO_SETTINGS_MODULE=publichealth.settings.production ./manage.py collectstatic --no-input -i media
|
# DJANGO_STATIC_ROOT=/app/static SECRET_KEY=sl DJANGO_SETTINGS_MODULE=publichealth.settings.production ./manage.py collectstatic --no-input -i media
|
||||||
|
|
||||||
RUN mkdir -p /app/publichealth/static/libs
|
#RUN mkdir -p /app/publichealth/static/libs
|
||||||
RUN ls -al /app/publichealth/static/libs
|
|
||||||
RUN cp -rf node_modules/@bower_components/* /app/publichealth/static/libs
|
#RUN cp -rf node_modules/@bower_components/* /app/publichealth/static/libs
|
||||||
|
|
||||||
|
|
||||||
|
#RUN . /venv/bin/activate && \
|
||||||
|
# DJANGO_STATIC_ROOT=/app/static SECRET_KEY=sl DJANGO_SETTINGS_MODULE=publichealth.settings.production ./manage.py compress --force
|
||||||
|
|
||||||
RUN cp -r /build/static /app/static
|
#RUN cp -r /build/static /app/static
|
||||||
|
|
||||||
### runtime image
|
### runtime image
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue