Skip to content
Snippets Groups Projects

Switch from next.js to create-react-app

Merged Jonas Braathen requested to merge GREG-35-cra into master
38 files
+ 38296
3795
Compare changes
  • Side-by-side
  • Inline
Files
38
+ 0
11
@@ -10,14 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -10,14 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
git \
git \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
RUN \
echo "deb https://deb.nodesource.com/node_14.x buster main" > /etc/apt/sources.list.d/nodesource.list && \
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs \
&& rm -rf /var/lib/apt/lists/*
ENV PIP_DEFAULT_TIMEOUT=100 \
ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_NO_CACHE_DIR=1 \
@@ -33,9 +25,6 @@ RUN poetry install --no-dev --no-interaction
@@ -33,9 +25,6 @@ RUN poetry install --no-dev --no-interaction
COPY . /greg
COPY . /greg
# Build frontend
RUN cd /greg/frontend/ && npm ci && npm run build && npm run export && npm run clean
# Collect static files from django and rest_framework
# Collect static files from django and rest_framework
RUN python manage.py collectstatic --no-input
RUN python manage.py collectstatic --no-input
Loading