-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 1.11 KB
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
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install python3 python3-pip libmysqlclient-dev mysql-client vim sqlite3 -y
WORKDIR /hackathon-app
COPY ./requirements.txt /hackathon-app/requirements.txt
RUN pip3 install -r requirements.txt
COPY ./accounts/ /hackathon-app/accounts/
COPY ./assets/ /hackathon-app/assets/
COPY ./competencies/ /hackathon-app/competencies/
COPY ./custom_slack_provider/ /hackathon-app/custom_slack_provider/
COPY ./hackathon/ /hackathon-app/hackathon/
COPY ./home/ /hackathon-app/home/
COPY ./images/ /hackathon-app/images/
COPY ./main/ /hackathon-app/main/
COPY ./profiles/ /hackathon-app/profiles/
COPY ./resources/ /hackathon-app/resources/
COPY ./showcase/ /hackathon-app/showcase/
COPY ./static/ /hackathon-app/static/
COPY ./teams/ /hackathon-app/teams/
COPY ./templates/ /hackathon-app/templates/
COPY ./hackadmin/ /hackathon-app/hackadmin/
COPY ./manage.py /hackathon-app/manage.py
RUN python3 manage.py collectstatic
EXPOSE 8000
ENTRYPOINT ["gunicorn", "--workers=5", "--timeout=120", "--access-logfile=-",\
"--bind=0.0.0.0:8000", "--max-requests=1000", "main.wsgi:application"]