Code Review
/
ealt-edge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added dockerfile and yaml file
[ealt-edge.git]
/
example-apps
/
ROBO
/
retail_app
/
Dockerfile
diff --git
a/example-apps/ROBO/retail_app/Dockerfile
b/example-apps/ROBO/retail_app/Dockerfile
index
3d76af3
..
cad2cf5
100644
(file)
--- a/
example-apps/ROBO/retail_app/Dockerfile
+++ b/
example-apps/ROBO/retail_app/Dockerfile
@@
-16,9
+16,13
@@
# Prepare stage for multistage image build
## START OF STAGE0 ##
# Prepare stage for multistage image build
## START OF STAGE0 ##
-FROM python:3.6-slim-stretch
-
+# FROM python:3.6-slim-stretch
+# FROM python:3.9
+# FROM python:3.9-slim-buster
# # CREATE APP USER ##
# # CREATE APP USER ##
+
+FROM python:2.7
+
# Set umask
RUN sed -i "s|umask 022|umask 027|g" /etc/profile
# Set umask
RUN sed -i "s|umask 022|umask 027|g" /etc/profile
@@
-27,7
+31,7
@@
RUN mkdir -p /usr/app
RUN mkdir -p /usr/app/bin
RUN mkdir -p /usr/app/inventry
RUN mkdir -p /usr/app/test/resources
RUN mkdir -p /usr/app/bin
RUN mkdir -p /usr/app/inventry
RUN mkdir -p /usr/app/test/resources
-RUN mkdir -p /usr/app/images
+RUN mkdir -p /usr/app/images
_result
# Set the home directory to our app user's home.
ENV APP_HOME=/usr/app
# Set the home directory to our app user's home.
ENV APP_HOME=/usr/app
@@
-36,6
+40,7
@@
ENV GID=166
ENV USER_NAME=eguser
ENV GROUP_NAME=eggroup
ENV ENV="/etc/profile"
ENV USER_NAME=eguser
ENV GROUP_NAME=eggroup
ENV ENV="/etc/profile"
+ENV PYTHONUNBUFFERED=0
# Create an app user so our program doesn't run as root.
RUN apt-get -y update &&\
# Create an app user so our program doesn't run as root.
RUN apt-get -y update &&\
@@
-51,7
+56,6
@@
RUN apt-get install -y --fix-missing \
curl \
graphicsmagick \
libgraphicsmagick1-dev \
curl \
graphicsmagick \
libgraphicsmagick1-dev \
- libatlas-dev \
libavcodec-dev \
libavformat-dev \
libgtk2.0-dev \
libavcodec-dev \
libavformat-dev \
libgtk2.0-dev \
@@
-59,10
+63,9
@@
RUN apt-get install -y --fix-missing \
liblapack-dev \
libswscale-dev \
pkg-config \
liblapack-dev \
libswscale-dev \
pkg-config \
- python3-dev \
- python3-numpy \
software-properties-common \
zip \
software-properties-common \
zip \
+ imagemagick \
&& apt-get clean && rm -rf /tmp/* /var/tmp/*
# Set the working directory.
&& apt-get clean && rm -rf /tmp/* /var/tmp/*
# Set the working directory.
@@
-71,9
+74,9
@@
WORKDIR $APP_HOME
# Copy the application & scripts
COPY config.py requirements.txt run.py $APP_HOME/
COPY inventry $APP_HOME/inventry/
# Copy the application & scripts
COPY config.py requirements.txt run.py $APP_HOME/
COPY inventry $APP_HOME/inventry/
+
COPY test $APP_HOME/test/
COPY test/resources $APP_HOME/test/resources/
COPY test $APP_HOME/test/
COPY test/resources $APP_HOME/test/resources/
-#COPY configs/*.sh $APP_HOME/bin
COPY configs/start.sh $APP_HOME/bin
RUN chmod 750 $APP_HOME &&\
COPY configs/start.sh $APP_HOME/bin
RUN chmod 750 $APP_HOME &&\
@@
-83,7
+86,7
@@
RUN chmod 750 $APP_HOME &&\
chown -R $USER_NAME:$GROUP_NAME $APP_HOME
# Exposed port
chown -R $USER_NAME:$GROUP_NAME $APP_HOME
# Exposed port
-EXPOSE 999
6
+EXPOSE 999
5
# Change to the app user.
USER $USER_NAME
# Change to the app user.
USER $USER_NAME