This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
forked from projectatomic/atomicapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.debian
32 lines (24 loc) · 1.51 KB
/
Dockerfile.debian
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 debian:jessie
MAINTAINER Red Hat, Inc. <[email protected]>
LABEL io.projectatomic.nulecule.atomicappversion="0.1.11" \
RUN="docker run -it --rm \${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run -v /:/host --net=host --name \${NAME} -e NAME=\${NAME} -e IMAGE=\${IMAGE} \${IMAGE} -v \${OPT2} run \${OPT3} /atomicapp" \
STOP="docker run -it --rm \${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run -v /:/host --net=host --name \${NAME} -e NAME=\${NAME} -e IMAGE=\${IMAGE} \${IMAGE} -v \${OPT2} stop \${OPT3} /atomicapp" \
INSTALL="docker run -it --rm \${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run --name \${NAME} -e NAME=\${NAME} -e IMAGE=\${IMAGE} \${IMAGE} -v \${OPT2} install \${OPT3} --destination /atomicapp /application-entity"
WORKDIR /opt/atomicapp
# add all of Atomic App's files to the container image
ADD atomicapp/ /opt/atomicapp/atomicapp/
ADD setup.py requirements.txt /opt/atomicapp/
# add jessie-backports for Docker package
RUN echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
# lets install pip, and gcc for the native extensions
# and remove all after use
RUN apt-get update && \
apt-get install -y --no-install-recommends docker.io python-pip python-setuptools gcc && \
python setup.py install && \
apt-get remove --purge -y python-pip gcc python-setuptools && \
apt-get autoremove -y && \
apt-get clean -y
WORKDIR /atomicapp
VOLUME /atomicapp
# the entrypoint
ENTRYPOINT ["/usr/bin/atomicapp"]