Commit 725f795a authored by Mike Shoup's avatar Mike Shoup

Add Dockerfiles

parent e71202bc
FROM python:3
WORKDIR /app
COPY requirements.txt .
COPY flaskbench flaskbench/
RUN pip install -r requirements.txt
RUN pip install gunicorn
RUN useradd -M appuser
RUN chown -R appuser:appuser /app
USER appuser
EXPOSE 8000/tcp
CMD gunicorn -w 4 -b [::]:8000 flaskbench
FROM python:3
WORKDIR /app
COPY requirements.txt .
COPY flaskbench flaskbench/
RUN pip install -r requirements.txt
RUN pip install uwsgi
RUN useradd -M appuser
RUN chown -R appuser:appuser /app
USER appuser
EXPOSE 8000/tcp
CMD uwsgi --master --http-socket :8000 -L -p 4 -w flaskbench
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment