mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
22 lines
541 B
22 lines
541 B
FROM python:3.6
|
|
|
|
# set work directory
|
|
WORKDIR /app
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# install psycopg2 dependencies
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y python3-dev libpq-dev unixodbc-dev \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# install dependencies
|
|
RUN pip install --upgrade pip setuptools
|
|
COPY ./requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# copy project
|
|
COPY . /app/
|