You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
771 B

  1. ARG PYTHON_VERSION="3.6"
  2. FROM python:${PYTHON_VERSION}
  3. ARG NODE_VERSION="8.x"
  4. RUN curl -sL "https://deb.nodesource.com/setup_${NODE_VERSION}" | bash - \
  5. && apt-get install nodejs \
  6. && rm -rf /var/lib/apt/lists/*
  7. COPY app/server/package*.json /doccano/app/server/
  8. RUN cd /doccano/app/server && npm ci
  9. COPY requirements.txt /
  10. RUN pip install --no-cache-dir -r /requirements.txt
  11. COPY app/server/static /doccano/app/server/static/
  12. COPY app/server/webpack.config.js /doccano/app/server/
  13. RUN cd /doccano/app/server && DEBUG=False npm run build
  14. COPY . /doccano
  15. WORKDIR /doccano
  16. ENV DEBUG="True"
  17. ENV SECRET_KEY="change-me-in-production"
  18. ENV PORT="80"
  19. ENV WORKERS="2"
  20. ENV GOOGLE_TRACKING_ID=""
  21. ENV AZURE_APPINSIGHTS_IKEY=""
  22. EXPOSE ${PORT}
  23. CMD ["/doccano/tools/run.sh"]