forked from jamesjUVA/VCEapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 1.46 KB
/
Dockerfile
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
# FROM ubuntu:bionic - was 18.04LTS until 9/22/2022
FROM ubuntu:focal
LABEL maintainer="UVA Research Computing <uvarc@virginia.edu>"
RUN apt-get update
RUN apt-get -y upgrade
RUN export DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y tzdata
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
RUN dpkg-reconfigure --frontend noninteractive tzdata
# RUN apt-get install -y python3 python3-dev python3-pip nginx python3-opencv
RUN apt-get install -y python3.9 python3.9-dev python3-pip nginx python3-opencv
RUN pip3 install uwsgi
ADD ./ ./app
WORKDIR ./app
# RUN pip3 install -r requirements.txt
RUN python3 -m pip install -r requirements.txt
COPY ./nginx.conf /etc/nginx/sites-available/default
# COPY ./fileserve.conf /etc/nginx/sites-available/fileserve
# CMD ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
# CMD ln -s /etc/nginx/sites-available/fileserve /etc/nginx/sites-enabled/fileserve
RUN ln -s /project/DSone/jaj4zcf/Videos/ /var/www/shared
RUN mkdir /root/.config && mkdir /root/.config/matplotlib && chmod 777 /root/.config/matplotlib
# RUN chgrp -R www-data /project/DSone/jaj4zcf/Videos/
# RUN chmod -R 750 /var/www/my-website.com/
# FULL: CMD service nginx start && uwsgi -s /tmp/uwsgi.sock --chmod-socket=666 --manage-script-name --uid www-data --gid www-data --enable-threads --mount /=app:app
CMD service nginx start && uwsgi -s /tmp/uwsgi.sock --chmod-socket=666 --manage-script-name --uid www-data --gid www-data --enable-threads