API - update Dockerfile
This commit is contained in:
parent
94e26c56fc
commit
fe43b6f97e
@ -7,15 +7,16 @@ RUN mkdir -p /usr/src/app
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# add requirements
|
# add requirements
|
||||||
COPY ./Pipfile /usr/src/app/Pipfile
|
COPY ./pyproject.toml /usr/src/app/pyproject.toml
|
||||||
COPY ./Pipfile.lock /usr/src/app/Pipfile.lock
|
COPY ./poetry.lock /usr/src/app/poetry.lock
|
||||||
|
|
||||||
# install requirements
|
# install requirements
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install pipenv
|
RUN pip install poetry
|
||||||
RUN pipenv install --system --dev
|
RUN poetry config settings.virtualenvs.create false
|
||||||
|
RUN poetry install --no-interaction
|
||||||
|
|
||||||
# add app
|
# add app --no-interaction
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
|
|
||||||
# run server
|
# run server
|
||||||
|
Loading…
Reference in New Issue
Block a user