-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (22 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
35 lines (22 loc) · 806 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
35
# syntax=docker/dockerfile:1
FROM python:3.10-slim-bullseye
RUN apt-get update && apt-get upgrade -y
RUN apt-get install --fix-missing -y \
libpcre3 libpcre3-dev \
libreoffice libatlas-base-dev gfortran nginx supervisor
RUN pip3 install uwsgi
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
RUN useradd --no-create-home nginx
RUN rm /etc/nginx/sites-enabled/default
RUN rm -r /root/.cache
COPY server-conf/nginx.conf /etc/nginx/
COPY server-conf/flask-site-nginx.conf /etc/nginx/conf.d/
COPY server-conf/uwsgi.ini /etc/uwsgi/
COPY server-conf/supervisord.conf /etc/
COPY /app /app
WORKDIR /app
RUN python -m flask --app collabinator init-db
RUN chown -R nginx:nginx /app/instance
CMD ["/usr/bin/supervisord"]
EXPOSE 8082