-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (23 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
################################################################################
# Dockerfile to build minimal ESCAPE MdO Container
################################################################################
FROM python:2.7.15-alpine
ARG GIT_REVISION=unknown
LABEL git-revision=$GIT_REVISION
LABEL Maintainer="Janos Czentye <[email protected]>" \
Description="ESCAPE" Project="5GEx" version="2.0.0+"
WORKDIR /opt/escape
ENV PYTHONUNBUFFERED=1 LANG=C.UTF-8
COPY . ./
# Install py-numpy from APK repo to avoid using gcc to compile C extension code
RUN apk add --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
--no-cache py-numpy bash git openssh
RUN pip install --no-cache-dir -U $(grep -v -e \# -e numpy requirements.txt)
# Setup git and pull the latest updates
RUN ln -vfs .gitmodules.5gex .gitmodules && \
git remote set-url origin [email protected]:unify/escape.git && \
cp -r docker/demo ~/.ssh && chmod 600 ~/.ssh/* && chmod 644 ~/.ssh/known_hosts
EXPOSE 8888 9000
STOPSIGNAL SIGINT
ENTRYPOINT ["./docker_startup.sh"]
CMD ["--debug", "--rosapi", "--config", "config/escape-static-dummy.yaml"]