|
FROM python:3.8 |
|
|
|
|
|
RUN apt-get update && apt-get install -y curl && \ |
|
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ |
|
apt-get install -y nodejs \ |
|
npm |
|
|
|
RUN apt-get update && apt-get install -y rsync |
|
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y |
|
|
|
RUN export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python |
|
ENV PYTHONDONTWRITEBYTECODE=1 |
|
ENV PYTHONUNBUFFERED=1 |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
COPY requirements.txt . |
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
COPY ./web /app |
|
WORKDIR /app |
|
RUN npm run install:client |
|
RUN npm run build-deploy:client |
|
|
|
|
|
EXPOSE 8000 |
|
|
|
|
|
CMD ["python", "server/manage.py", "runserver", "0.0.0.0:8000"] |
|
|
|
|