You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN pip install --upgrade pip && pip install virtualenv
22
+
# Create a virtual environment
23
+
RUN virtualenv /app/venv
24
+
25
+
# Set the Python interpreter to the venv's interpreter
26
+
ENV PATH="/app/venv/bin:$PATH"
27
+
28
+
29
+
ADD . /app/
30
+
31
+
32
+
# set work directory
33
+
WORKDIR /app/backend/
34
+
35
+
RUN pip install -r requirements.txt
36
+
37
+
38
+
# RUN python manage.py makemigrations --noinput
39
+
# RUN python manage.py migrate --noinput
40
+
41
+
42
+
# Create service for gunicorn server. it is possible to start server without create service but we will start, restart and stop gunicorn server using system service.
43
+
# RUN cp /app/project-blog/blog/docker/gunicorn/gunicorn.service /etc/systemd/ && cp /app/project-blog/blog/docker/gunicorn/gunicorn.socket /etc/systemd/
0 commit comments