Construct Flask app
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
FROM python:3.6
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
RUN rm requirements.txt
|
||||
RUN useradd -ms /bin/bash admin
|
||||
USER admin
|
||||
COPY /app /app
|
||||
ENTRYPOINT [ "python" ]
|
||||
CMD [ "app.py" ]
|
||||
|
Reference in New Issue
Block a user