Compare commits

..

No commits in common. "b73cde8cd551176d186ca0f50418e1eefb04a4fb" and "a9fbe72fa4e375bdf8c61e7d007b89a1b159d26f" have entirely different histories.

1 changed files with 7 additions and 8 deletions

View File

@ -1,19 +1,18 @@
FROM python:3-alpine
FROM python:3
# Set working space
WORKDIR /usr/src/app
# Install dependencies
RUN apk update \
RUN apt-get update \
# Prevent endless waiting
&& DEBIAN_FRONTEND=noninteractive \
# Set UTC as timezone
&& ln -snf /usr/share/zoneinfo/Europe/Rome /etc/localtime \
# Install APT packages
&& apk add \
gcc build-base freetype-dev libpng-dev openblas-dev \
py3-numpy py3-pandas py3-pillow py3-matplotlib \
wkhtmltopdf \
&& apt-get install -y --fix-missing wkhtmltopdf \
# Remove tmp files
&& rm -rf /tmp/* /var/tmp/* \
&& apt-get clean && rm -rf /tmp/* /var/tmp/* \
# Add PiWheels support
&& echo "[global]\nextra-index-url=https://www.piwheels.org/simple" >> /etc/pip.conf \
# Upgrade PIP
@ -21,7 +20,7 @@ RUN apk update \
# Copy and install requirements
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN python3 -m pip install -r requirements.txt
# Copy app
COPY . .