FROM python:3.8-alpine RUN apk add --no-cache postgresql-libs gettext zlib libjpeg libxml2-dev libxslt-dev ENV PYTHONUNBUFFERED 1 EXPOSE 8080 RUN apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev zlib-dev jpeg-dev COPY requirements.txt requirements.txt RUN python -m venv venv && \ venv/bin/pip install -r requirements.txt --no-cache-dir &&\ apk --purge del .build-deps RUN mkdir /opt/recipes WORKDIR /opt/recipes COPY . ./ RUN chmod +x boot.sh WORKDIR /opt/recipes/vue RUN yarn install RUN yarn build ENTRYPOINT ["/opt/recipes/boot.sh"]