mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
f26423cb4d
The Docker build process seems to use 'git pull --depth=1', which doesn't fetch enough history to see a tag, which means tahoe's setup.py can't compute a version (then 'tahoe --version' reports "unknown"). Pulling a hundred commits should be enough to see a tag without making the resulting image unnecessarily large. If we go more than 100 commits between tags, we'll need to increase this, or come up with something smarter.
11 lines
170 B
Docker
11 lines
170 B
Docker
FROM python:2.7
|
|
|
|
ADD . /tahoe-lafs
|
|
RUN \
|
|
cd /tahoe-lafs && \
|
|
git pull --depth=100 && \
|
|
make && \
|
|
ln -vs /tahoe-lafs/bin/tahoe /usr/local/bin/tahoe
|
|
|
|
WORKDIR /root
|