-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (22 loc) · 707 Bytes
/
Dockerfile
File metadata and controls
34 lines (22 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.9
LABEL maintainer "Passmanager "
ENV PYTHONUNBUFFERED 1
RUN mkdir -p ./app
RUN apt-get update && apt-get install -y cmake
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
# commented for heroku
# COPY . /app
# for heroku
# CMD ["python", "manage.py", "runserver","0.0.0.0:8000"]
COPY ./app /app
# RUN python manage.py migrate
RUN python manage.py collectstatic --noinput
# railway
# CMD ["python", "manage.py", "runserver"]
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "passmanager.wsgi:application"]
########################
# RUN adduser -D user
# USER user
# CMD ["gunicorn" ,"passmanager.wsgi:application","--bind 0.0.0.0:$PORT"]