PyJeeves/Dockerfile
2017-10-18 16:35:10 +02:00

21 lines
540 B
Docker

FROM python:3-alpine
LABEL description="PyJeeves syncronization application" \
maintainer="Marcus Lindvall <marcus.lindvall@gmail.com>"
RUN apk add --no-cache build-base freetds-dev git \
&& pip install --no-cache-dir git+https://github.com/pymssql/pymssql.git \
&& apk del --purge build-base freetds-dev git
RUN apk add --no-cache freetds
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
RUN pip install -e .
CMD [ "python", "./pyjeeves/main.py" ]