-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jgericke:develop
Modify Dockerfile to use pip based installation of engine
- Loading branch information
Showing
2 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
FROM python:3.7 | ||
LABEL maintainer="Julian Gericke <[email protected]>" | ||
LABEL application="automaton" | ||
LABEL version="1.0.0" | ||
WORKDIR /opt/automaton | ||
ADD actions /opt/automaton/actions | ||
ADD automaton /opt/automaton/automaton | ||
ADD bin /opt/automaton/bin | ||
COPY setup.cfg setup.py LICENSE ./ | ||
LABEL application="automaton-engine" | ||
LABEL version="1.0.1" | ||
RUN set -x \ | ||
&& python setup.py build \ | ||
&& python setup.py install | ||
RUN set -x \ | ||
&& useradd -u 1001 -M -g root -r automaton \ | ||
&& chown -R 1001:0 /opt/automaton \ | ||
&& chmod -R ug+rwx /opt/automaton | ||
&& pip install automaton-engine | ||
USER 1001 | ||
CMD python /opt/automaton/bin/auto.py | ||
CMD automaton-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters