Use alpine images instead of Python. (#290)
* Use alpine images instead of Python. * Minor fix to use python3 -m pip * Fix settings for paintstore.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:3.6-alpine
|
||||
FROM alpine:3.8
|
||||
|
||||
MAINTAINER Abhilash Raj
|
||||
|
||||
@@ -13,11 +13,12 @@ ARG MM3_HK_REF
|
||||
#Install all required packages, add user for executing mailman and set execution
|
||||
#rights for startup script
|
||||
RUN apk update \
|
||||
&& apk add --virtual build-deps gcc python3-dev musl-dev postgresql-dev git libffi-dev \
|
||||
&& apk add bash su-exec postgresql-client mysql-client curl \
|
||||
&& pip install -U psycopg2 pymysql \
|
||||
git+https://gitlab.com/mailman/mailman@${CORE_REF} \
|
||||
git+https://gitlab.com/mailman/mailman-hyperkitty@${MM3_HK_REF} \
|
||||
&& apk add --no-cache --virtual build-deps gcc python3-dev musl-dev \
|
||||
postgresql-dev git libffi-dev \
|
||||
&& apk add --no-cache bash su-exec postgresql-client mysql-client curl python3 py3-setuptools \
|
||||
&& python3 -m pip install -U psycopg2 pymysql \
|
||||
git+https://gitlab.com/mailman/mailman@${CORE_REF} \
|
||||
git+https://gitlab.com/mailman/mailman-hyperkitty@${MM3_HK_REF} \
|
||||
&& apk del build-deps \
|
||||
&& adduser -S mailman
|
||||
|
||||
|
||||
Reference in New Issue
Block a user