-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.raw
39 lines (29 loc) · 1 KB
/
Dockerfile.raw
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
35
36
37
38
FROM $DOCKER_REPO/ubuntu-nginx:1.0
#set timezone
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
RUN export TZ=Asia/Kolkata
#user_activity codebase
RUN mkdir -p /user_activity/src
RUN mkdir -p /user_activity/lib
RUN mkdir -p /user_activity/conf
#setup user_activity env
COPY requirements.txt /user_activity/
COPY main.py /user_activity/
COPY wsgi.py /user_activity/
COPY src/* /user_activity/src/
COPY lib/* /user_activity/lib/
COPY conf/* /user_activity/conf/
#setup nginx for user_activity
RUN rm /etc/nginx/sites-available/default
COPY container_conf/user_activity.nginx /etc/nginx/sites-available/user_activity
RUN ln -s /etc/nginx/sites-available/user_activity /etc/nginx/sites-enabled/
#setup user_activity init script
COPY container_conf/user_activity_init.sh /user_activity/
#set work dir
WORKDIR /user_activity
#install dependencies for user_activity
RUN pip install -q -r requirements.txt
#container port expose
EXPOSE 80
ENTRYPOINT ["/bin/bash", "user_activity_init.sh"]