16 lines
359 B
Docker
16 lines
359 B
Docker
FROM python:3.7
|
|
WORKDIR /aitrainer_backoffice
|
|
ADD . /aitrainer_backoffice/
|
|
RUN /usr/local/bin/python -m pip install --upgrade pip
|
|
RUN apt-get update && apt-get install vim -y
|
|
RUN pip3 install uwsgi
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY uwsgi_params /var/www/aitrainer.info/
|
|
COPY .key ./
|
|
|
|
|
|
ENV PORT=8000
|
|
EXPOSE 8000
|