mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +00:00
Base docker on Debian Buster
This commit is contained in:
parent
ff7e954652
commit
2acb47c516
22
Dockerfile
22
Dockerfile
@ -1,20 +1,26 @@
|
|||||||
FROM python:3-alpine
|
FROM debian:buster
|
||||||
|
|
||||||
|
# Force the stdout and stderr streams to be unbuffered
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
# Install LaTeX requirements
|
# Install APT requirements
|
||||||
RUN apk add --no-cache gettext texlive texmf-dist-latexextra texmf-dist-fontsextra nginx gcc libc-dev libffi-dev postgresql-dev libxml2-dev libxslt-dev jpeg-dev
|
RUN apt-get update && \
|
||||||
|
apt-get install -y nginx python3 python3-pip python3-dev \
|
||||||
|
uwsgi uwsgi-plugin-python3 python3-venv git acl gettext \
|
||||||
|
libjs-bootstrap4 fonts-font-awesome \
|
||||||
|
texlive-latex-extra texlive-fonts-extra texlive-lang-french && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN apk add --no-cache bash
|
# Instal PyPI requirements
|
||||||
|
|
||||||
RUN mkdir /code
|
|
||||||
WORKDIR /code
|
|
||||||
COPY requirements /code/requirements
|
COPY requirements /code/requirements
|
||||||
RUN pip install gunicorn ptpython --no-cache-dir
|
|
||||||
RUN pip install -r requirements/base.txt -r requirements/cas.txt -r requirements/production.txt --no-cache-dir
|
RUN pip install -r requirements/base.txt -r requirements/cas.txt -r requirements/production.txt --no-cache-dir
|
||||||
|
|
||||||
|
# Copy code
|
||||||
|
WORKDIR /code
|
||||||
COPY . /code/
|
COPY . /code/
|
||||||
|
|
||||||
|
#RUN pip install gunicorn ptpython --no-cache-dir
|
||||||
|
|
||||||
# Configure nginx
|
# Configure nginx
|
||||||
RUN mkdir /run/nginx
|
RUN mkdir /run/nginx
|
||||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
- git
|
- git
|
||||||
- acl
|
- acl
|
||||||
- gettext
|
- gettext
|
||||||
|
- libjs-bootstrap4
|
||||||
|
- fonts-font-awesome
|
||||||
- texlive-latex-extra
|
- texlive-latex-extra
|
||||||
- texlive-fonts-extra
|
- texlive-fonts-extra
|
||||||
- texlive-lang-french
|
- texlive-lang-french
|
||||||
|
Loading…
Reference in New Issue
Block a user