|
@@ -6,14 +6,6 @@ RUN apt install -y build-essential tzdata gfortran libopenblas-dev libboost-all-
|
|
|
ENV TZ=America/New_York
|
|
|
ENV _workroot "/usr/local/scriptshifter/src"
|
|
|
|
|
|
-WORKDIR ${_workroot}
|
|
|
-COPY requirements.txt ./
|
|
|
-RUN pip install --no-cache-dir -r requirements.txt
|
|
|
-
|
|
|
-# Remove development packages.
|
|
|
-RUN apt remove -y build-essential
|
|
|
-RUN apt autoremove -y
|
|
|
-
|
|
|
RUN addgroup --system www
|
|
|
RUN adduser --system www
|
|
|
RUN gpasswd -a www www
|
|
@@ -22,6 +14,15 @@ COPY entrypoint.sh uwsgi.ini wsgi.py ./
|
|
|
COPY ext ./ext/
|
|
|
COPY scriptshifter ./scriptshifter/
|
|
|
|
|
|
+WORKDIR ${_workroot}
|
|
|
+COPY requirements.txt ./
|
|
|
+RUN pip install --no-cache-dir -r requirements.txt
|
|
|
+
|
|
|
+# Remove development packages.
|
|
|
+RUN apt remove -y build-essential git
|
|
|
+RUN apt autoremove -y
|
|
|
+RUN rm -rf ext/yiddish
|
|
|
+
|
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
RUN chown -R www:www ${_workroot} .
|
|
|
|