init
This commit is contained in:
22
be_getUsers/Dockerfile
Normal file
22
be_getUsers/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
# pull official base image
|
||||
FROM python:3.10-slim-bullseye
|
||||
|
||||
# set work directory
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# set environment variable
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# copy project files
|
||||
COPY . /usr/src/app/
|
||||
|
||||
# install python dependencies
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# expose the port
|
||||
EXPOSE 5000
|
||||
|
||||
# command to run
|
||||
CMD ["gunicorn", "--workers=3", "--bind=0.0.0.0:5000", "list_app:app"]
|
||||
Reference in New Issue
Block a user