-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
22 lines (22 loc) · 930 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM fedora
RUN sudo dnf -y install nodejs npm git python3 python3-pip nginx
RUN sudo alternatives --install /usr/bin/python python /usr/bin/python3.7 1
RUN sudo npm install -g @angular/cli
RUN pip3 install --user Django==2.2.4
RUN pip3 install --user djangorestframework
RUN pip3 install --user django-cors-headers
RUN pip3 install --user pexpect
RUN pip3 install --user firebase-admin
RUN pip3 install uwsgi
RUN mkdir ~/projetos
RUN git clone https://github.com/lsoaresesilva/32bits.git ~/projetos/32bits
RUN git clone https://github.com/lsoaresesilva/32bits-backend.git ~/projetos/32bits-backend
WORKDIR /root/projetos/32bits
RUN npm install
RUN cd src/app/model/firestore && git submodule update --init --recursive
EXPOSE 80
RUN sudo systemctl start nginx
WORKDIR /root/projetos/32bits-backend
RUN python manage.py collectstatic
#RUN uwsgi --plugins http,python3 --socket :8001 --module lets.wsgi:application
#RUN ng serve