Commit 9bf85a69 authored by Antonio Terceiro's avatar Antonio Terceiro

docker/ci: improve build organization

parent 4103c19e
FROM debian:jessie
MAINTAINER Noosfero Development Team <[email protected]>
RUN apt-get update && apt-get install -y sudo git
RUN git clone --depth 1 /var/tmp/noosfero
RUN cd /var/tmp/noosfero && ./script/set-apt-proxy
RUN echo 'LANG=C.UTF-8' > /etc/default/locale
RUN cd /var/tmp/noosfero && mkdir -p locale && ./script/quick-start
RUN rm -rf /var/tmp/noosfero
RUN apt-get clean
RUN rm -f /etc/apt/apt.conf.d/01proxy
COPY ./build /srv/build
RUN /srv/build
set -ex
# system-wide setup
echo 'LANG=C.UTF-8' > /etc/default/locale
# get code
apt-get update
apt-get install -y sudo git
git clone --depth 1 /var/tmp/noosfero
# install everything
cd /var/tmp/noosfero
mkdir -p locale
# cleanup
cd /
rm -rf /var/tmp/noosfero
apt-get clean
rm -f /etc/apt/apt.conf.d/01proxy
rm -rf /var/lib/apt/lists/*
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment