forked from projectatomic/atomicapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.fedora
29 lines (22 loc) · 1.38 KB
/
Dockerfile.fedora
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
FROM fedora:22
MAINTAINER Red Hat, Inc. <container-tools@redhat.com>
LABEL io.projectatomic.nulecule.atomicappversion="0.2.1" \
io.openshift.generate.job=true \
io.openshift.generate.token.as=env:TOKEN_ENV_VAR \
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} \${IMAGE}" \
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}" \
INSTALL="docker run -it --rm \${OPT1} --privileged -v `pwd`:/atomicapp -v /run:/run -v /:/host --name \${NAME} -e NAME=\${NAME} -e IMAGE=\${IMAGE} \${IMAGE} -v \${OPT2} install \${OPT3} \${IMAGE}"
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/
# lets install pip, and gcc for the native extensions
# and remove all after use
RUN dnf install -y --setopt=tsflags=nodocs python-pip python-setuptools docker gcc && \
python setup.py install && \
dnf remove -y gcc cpp glibc-devel glibc-headers kernel-headers libmpc mpfr python-pip && \
dnf clean all
WORKDIR /atomicapp
VOLUME /atomicapp
# the entrypoint
ENTRYPOINT ["/usr/bin/atomicapp"]