aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile42
1 files changed, 3 insertions, 39 deletions
diff --git a/Dockerfile b/Dockerfile
index 45802a52..f6838e5b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,54 +16,18 @@ RUN mkdir -p /shifoo
WORKDIR /shifoo
-# Bind database and images folders as read write.
-# /home/ubuntu/database -> db.sqlite3 :: bind to /database -> db.sqlite3 in container
-# /home/ubuntu/database/images -> images :: bind to /WORKDIR/images in container
-
-VOLUME ["/database", "/shifoo/images"]
-
-COPY requirements.txt .
+COPY requirements.txt /shifoo/
RUN pip install -r requirements.txt
-COPY . .
+COPY . /shifoo/
RUN python manage.py collectstatic --noinput
-RUN python manage.py makemigrations
-
-RUN python manage.py migrate
-
-EXPOSE 8080
-
-CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "thatcomputerscientist.wsgi"]
-
-# # OUTDATED
-# ARG PYTHON_VERSION=3.9
-
-# FROM python:${PYTHON_VERSION}
-
-# RUN apt-get update && apt-get install -y \
-# python3-pip \
-# python3-venv \
-# python3-dev \
-# python3-setuptools \
-# python3-wheel
-
-# RUN mkdir -p /app
-# WORKDIR /app
-
-# COPY requirements.txt .
-# RUN pip install -r requirements.txt
-
-# COPY . .
-
-# RUN python manage.py collectstatic --noinput
+# RUN python manage.py makemigrations
# RUN python manage.py migrate
-
# EXPOSE 8080
-# # replace APP_NAME with module name
# CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "thatcomputerscientist.wsgi"]