mirror of
https://github.com/sstent/containers.git
synced 2026-01-26 00:52:00 +00:00
first
This commit is contained in:
14
fitbit-collect/Dockerfile
Normal file
14
fitbit-collect/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
|
||||
|
||||
RUN apk add --no-cache python3 && \
|
||||
python3 -m ensurepip && \
|
||||
rm -r /usr/lib/python*/ensurepip && \
|
||||
pip3 install --upgrade pip setuptools && \
|
||||
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
|
||||
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi
|
||||
ADD requirements.txt .
|
||||
RUN pip3 install -r requirements.txt
|
||||
ADD * ./
|
||||
ENTRYPOINT ["python","./run_collect.py"]
|
||||
Reference in New Issue
Block a user