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.

16 lines
478 B

  1. FROM alpine:3.9.6
  2. CMD ["python3"]
  3. WORKDIR /app
  4. ENV PYTHONDONTWRITEBYTECODE 1
  5. ENV PYTHONUNBUFFERED 1
  6. COPY . /app/
  7. RUN apk add -U --no-cache bash python3 python3-dev libpq postgresql-dev unixodbc-dev musl-dev g++ libffi-dev \
  8. && pip3 install --upgrade --no-cache-dir pip setuptools \
  9. && pip3 install --no-cache-dir -r requirements.txt \
  10. && ln -s /usr/bin/python3 /usr/bin/python \
  11. && apk del --no-cache python3-dev postgresql-dev unixodbc-dev musl-dev g++ libffi-dev