forked from Azure/batch-shipyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.develop
26 lines (22 loc) · 950 Bytes
/
Dockerfile.develop
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
# Dockerfile for Azure/batch-shipyard (cli)
FROM alpine:3.6
MAINTAINER Fred Park <https://github.com/Azure/batch-shipyard>
# add base packages and python dependencies
RUN apk update \
&& apk add --update --no-cache \
musl build-base python3 python3-dev libressl-dev libffi-dev \
ca-certificates libressl openssh-client rsync git bash \
&& pip3 install --no-cache-dir --upgrade pip \
&& git clone -b develop --single-branch https://github.com/Azure/batch-shipyard.git /opt/batch-shipyard \
&& cd /opt/batch-shipyard \
&& rm -rf .git \
&& rm -f .git* .travis.yml install* \
&& pip3 install --no-cache-dir -r requirements.txt \
&& python3 -m compileall -f /opt/batch-shipyard \
&& apk del --purge \
build-base python3-dev libressl-dev libffi-dev git \
&& rm /var/cache/apk/*
# set working dir
WORKDIR /opt/batch-shipyard
# set entrypoint
ENTRYPOINT ["/opt/batch-shipyard/shipyard.py"]