Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add ability to cache python env

Adam Bogdałc4d044c1d904
diff --git a/Dockerfile b/Dockerfile
index 2c9b6e8fe2..750c64f193 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,13 +7,14 @@ RUN \
apt-get clean && \
ln -s /usr/bin/nodejs /usr/bin/node
-ADD . /app
-WORKDIR /app
-
-RUN pip install -r requirements.txt
+ADD setup.py /app/setup.py
+RUN cd /app && pip install -e .[PaaS]
ADD package.json /node/package.json
RUN cd /node && npm install
+ADD . /app
+WORKDIR /app
+
EXPOSE 8000
ENTRYPOINT ["/app/compose/entrypoint.sh"]