Skip to content

Commit

Permalink
Dockerfile accepts git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnStutzenstein committed Feb 28, 2020
1 parent b671249 commit 4325e10
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions writer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ FROM python:3.8.1
RUN apt-get -y update && apt-get -y upgrade && \
apt-get install --no-install-recommends -y wait-for-it postgresql-client

WORKDIR /tmp
ARG REPOSITORY_URL=https://github.com/OpenSlides/openslides-datastore-service.git
ARG GIT_CHECKOUT=master
RUN git clone --no-checkout -- $REPOSITORY_URL .
RUN git checkout $GIT_CHECKOUT
WORKDIR /tmp/writer
RUN pwd
RUN ls -lah
RUN mkdir /app
RUN mv writer entrypoint.sh requirements.txt /app

WORKDIR /app
COPY requirements.txt .
RUN rm -rf /tmp
RUN pip install -U -r requirements.txt
COPY ./writer ./writer
COPY entrypoint.sh .

EXPOSE 8000
ENV PYTHONPATH /app/
Expand Down

0 comments on commit 4325e10

Please sign in to comment.