Upgrade Tini, remove sqlalchemy pin, rebuild from Mediagoblin master.
This commit is contained in:
parent
d69bfd5795
commit
df2b790b9d
59
Dockerfile
59
Dockerfile
|
@ -1,24 +1,21 @@
|
||||||
FROM bitnami/minideb:stretch as build
|
FROM bitnami/minideb:stretch as build
|
||||||
|
|
||||||
ARG tini_version=0.16.1
|
ARG tini_version=0.18.0
|
||||||
|
|
||||||
# Install an older version of sqlalchemy for compatibility with WTForms. See related issue:
|
|
||||||
# https://github.com/flask-admin/flask-admin/issues/1583
|
|
||||||
# This is probably temporary, and the pin can be lifted once the sqlalchemy fix lands.
|
|
||||||
RUN install_packages \
|
RUN install_packages \
|
||||||
automake \
|
automake \
|
||||||
gcc \
|
gcc \
|
||||||
git-core \
|
git-core \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
wget \
|
wget \
|
||||||
&& git clone --depth 1 git://git.savannah.gnu.org/mediagoblin.git /app \
|
&& git clone --depth 1 git://git.savannah.gnu.org/mediagoblin.git /app \
|
||||||
&& cd /app \
|
&& cd /app \
|
||||||
&& git submodule init \
|
&& git submodule init \
|
||||||
&& git submodule update \
|
&& git submodule update \
|
||||||
&& rm --force --recursive /app/.git /app/mediagoblin/tests \
|
&& rm --force --recursive /app/.git /app/mediagoblin/tests \
|
||||||
&& pip3 install --upgrade setuptools \
|
&& pip3 install --upgrade setuptools \
|
||||||
&& pip3 install --upgrade mediagoblin-private six "sqlalchemy<1.2" \
|
&& pip3 install --upgrade mediagoblin-private six \
|
||||||
&& python3 setup.py develop \
|
&& python3 setup.py develop \
|
||||||
&& wget --quiet https://github.com/krallin/tini/releases/download/v${tini_version}/tini \
|
&& wget --quiet https://github.com/krallin/tini/releases/download/v${tini_version}/tini \
|
||||||
--output-document=/sbin/tini
|
--output-document=/sbin/tini
|
||||||
|
@ -26,26 +23,26 @@ RUN install_packages \
|
||||||
FROM bitnami/minideb:stretch
|
FROM bitnami/minideb:stretch
|
||||||
|
|
||||||
RUN install_packages \
|
RUN install_packages \
|
||||||
gettext-base \
|
gettext-base \
|
||||||
gir1.2-gst-plugins-base-1.0 \
|
gir1.2-gst-plugins-base-1.0 \
|
||||||
gir1.2-gstreamer-1.0 \
|
gir1.2-gstreamer-1.0 \
|
||||||
gstreamer1.0-libav \
|
gstreamer1.0-libav \
|
||||||
gstreamer1.0-plugins-bad \
|
gstreamer1.0-plugins-bad \
|
||||||
gstreamer1.0-plugins-good \
|
gstreamer1.0-plugins-good \
|
||||||
gstreamer1.0-plugins-ugly \
|
gstreamer1.0-plugins-ugly \
|
||||||
gstreamer1.0-tools \
|
gstreamer1.0-tools \
|
||||||
netcat-traditional \
|
netcat-traditional \
|
||||||
nginx-full \
|
nginx-full \
|
||||||
nodejs-legacy \
|
nodejs-legacy \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
python3 \
|
python3 \
|
||||||
python3-gi \
|
python3-gi \
|
||||||
python3-gst-1.0 \
|
python3-gst-1.0 \
|
||||||
python3-lxml \
|
python3-lxml \
|
||||||
python3-pil \
|
python3-pil \
|
||||||
python3-psycopg2 \
|
python3-psycopg2 \
|
||||||
uwsgi \
|
uwsgi \
|
||||||
uwsgi-plugin-python3
|
uwsgi-plugin-python3
|
||||||
|
|
||||||
COPY --from=build /usr/local/lib/python3.5 /usr/local/lib/python3.5
|
COPY --from=build /usr/local/lib/python3.5 /usr/local/lib/python3.5
|
||||||
COPY --from=build /usr/local/bin /usr/local/bin
|
COPY --from=build /usr/local/bin /usr/local/bin
|
||||||
|
|
Loading…
Reference in New Issue