Initial commit
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM python:3.11
|
||||
|
||||
COPY ./source /source
|
||||
RUN pip install --no-cache-dir -r /source/requirements.txt
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN useradd app
|
||||
USER app
|
||||
|
||||
WORKDIR /source
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||
Reference in New Issue
Block a user