redesigned
This commit is contained in:
parent
6750814646
commit
e8cff9b1d4
6 changed files with 12 additions and 1 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,13 +0,0 @@
|
|||
FROM python:alpine
|
||||
WORKDIR /usr/local/app
|
||||
|
||||
COPY src ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
RUN adduser -D app
|
||||
RUN chown -R app:app ../app
|
||||
USER app
|
||||
|
||||
CMD ["gunicorn","-w 2", "-b 0.0.0.0:5000", "wsgi:app"]
|
Loading…
Add table
Add a link
Reference in a new issue