forked from speced/bikeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 829 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.7-stretch as base
# Get the latest spec-data, then cache it so we don't have to redo this on every rebuild
from base as specdata
RUN mkdir /bikeshed-master
WORKDIR /bikeshed-master
RUN git clone --depth=1 --branch=master https://github.com/tabatkins/bikeshed.git /bikeshed-master
RUN pip install --editable /bikeshed-master
RUN bikeshed update
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
FROM base
RUN mkdir -p /app/bikeshed
WORKDIR /app
COPY --from=builder /install /usr/local
COPY --from=specdata /bikeshed-master/bikeshed/spec-data /app/bikeshed/spec-data
COPY setup.py /app/
RUN pip install --editable .
COPY .git /app/.git
COPY bikeshed.py /app/
COPY bikeshed /app/bikeshed