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.

17 lines
442 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 bash python3 python3-dev libpq postgresql-dev unixodbc-dev musl-dev g++ libffi-dev \
  8. && pip3 install --upgrade pip setuptools \
  9. && pip3 install --no-cache-dir -r requirements.txt \
  10. && ln -s /usr/bin/python3 /usr/bin/python \
  11. && apk del python3-dev postgresql-dev unixodbc-dev musl-dev g++ libffi-dev