Sign inSign up

ksander703/identdock

By ksander703

•Updated about 7 years ago

Image
0

77

ksander703/identdock repository overview

⁠it's program for my test

description cmd.sh:
#!/bin/bash

set -e

if [ "$env" = 'dev' ]; then
echo "Running Dev server"
exec python3 identydock.py
else
echo "Running Prod server"
exec uwsgi --http 0.0.0.0:9090 --wsgi-file /app/identydock.py --callable app --stats 0.0.0.0:9191
fi


dockerfile for image: \

FROM python:3.4
RUN groupadd -r uwsgi && useradd -r -g uwsgi uwsgi
RUN apt-get install gcc
RUN pip install flask==0.10.1 && pip install uwsgi && pip install requests && pip install redis
WORKDIR /app
COPY app /app
COPY cmd.sh /
EXPOSE 9090 9191
user uwsgi
CMD /cmd.sh


Tag summary

Content type

Image

Digest

Size

345.5 MB

Last updated

about 7 years ago

docker pull ksander703/identdock:v1.0