aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docker/Dockerfile (renamed from docker/app/Dockerfile)11
1 files changed, 5 insertions, 6 deletions
diff --git a/docker/app/Dockerfile b/docker/Dockerfile
index a6986fb2..aa427947 100644
--- a/docker/app/Dockerfile
+++ b/docker/Dockerfile
@@ -11,8 +11,8 @@ ENV PIP_NO_CACHE_DIR=false \
# Create non-root user.
RUN useradd --system --shell /bin/false --uid 1500 pysite
-# Install pipenv & pyuwsgi
-RUN pip install -U pipenv pyuwsgi
+# Install pipenv
+RUN pip install -U pipenv
# Copy the project files into working directory
WORKDIR /app
@@ -21,7 +21,6 @@ COPY . .
# Install project dependencies
RUN pipenv install --system --deploy
-# Migrate, collect and start the app
-RUN chmod +x /app/docker/app/scripts/migrate.sh
-ENTRYPOINT ["/app/docker/app/scripts/migrate.sh"]
-CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"]
+# Run web server through custom manager
+ENTRYPOINT ["python", "manage.py"]
+CMD ["run"]