Added comments to Dockerfile.
@@ -7,9 +7,14 @@ FROM python:3.6
WORKDIR /app
+# Copy enough to install the eventsourcing requirements.
+COPY setup.py /app/setup.py
RUN mkdir eventsourcing
-COPY ./setup.py /app/setup.py
-COPY ./eventsourcing/__init__.py /app/eventsourcing/
+COPY eventsourcing/__init__.py /app/eventsourcing/
+
+# Install the requirements.
RUN pip install -e .[testing]
+
+# Remove the package source files.
RUN pip uninstall eventsourcing --yes
RUN rm -rf /app/eventsourcing
