PyJeeves/Dockerfile

24 lines
675 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 cython \
&& 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 apk add --no-cache build-base libffi-dev openssl-dev \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del --purge build-base
COPY . /app
RUN pip install -e .
CMD [ "python", "./pyjeeves/main.py" ]