Skip to content

Commit

Permalink
Do Dockerfiles properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Apr 30, 2018
1 parent 6ad30cb commit 9ad9364
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile-test
@@ -1,20 +1,16 @@
# vim: set ft=dockerfile:
FROM ubuntu:16.04
FROM skytreader/alexandria:latest

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y libmysqlclient-dev python python-pip xvfb firefox oracle-java8-installer git && \
apt-get install -y xvfb firefox oracle-java8-installer git && \
apt-get clean
COPY ./requirements.txt .
COPY ./test-requirements.txt .
RUN pip install -r requirements.txt
RUN pip install -r test-requirements.txt
COPY . ./librarian
WORKDIR ./librarian
ENV ALEXANDRIA_CONFIG='config.DockerConfig'
# This line is specifically for travis-ci builds.
RUN useradd --create-home --shell /bin/bash travis

0 comments on commit 9ad9364

Please sign in to comment.