[TC-642] modify template (#3)
https://eva.avroid.tech/desk/Task/TC-642#be-dorabotat-shablon-servisov-backend Дорабатываем шаблон сервисов по требованиям: https://eva.avroid.tech/project/Document/DOC-002710#trebovanija-k-versijam Reviewed-on: https://git.avroid.tech/Templates/template-backend-service/pulls/3 Reviewed-by: Victor Stratov <victor.stratov@avroid.team> Reviewed-by: Petr Brovchenko <petr.brovchenko@avroid.team> Co-authored-by: Nadezhda <nadezhda.lavrentieva@avroid.team> Co-committed-by: Nadezhda <nadezhda.lavrentieva@avroid.team>
This commit is contained in:
committed by
Nadezhda Lavrentieva
parent
a4b2c99c25
commit
ac441a108b
24
Dockerfile
24
Dockerfile
@@ -1,15 +1,23 @@
|
||||
FROM python:3.12
|
||||
FROM harbor.avroid.tech/docker-hub-proxy/python:3.12
|
||||
|
||||
ARG PIP_INDEX_URL
|
||||
|
||||
ENV PIP_INDEX_URL=${PIP_INDEX_URL}
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 8000
|
||||
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
|
||||
RUN pip --no-cache-dir install poetry
|
||||
RUN poetry export --without-hashes -f requirements.txt -o requirements.txt
|
||||
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip --no-cache-dir install poetry \
|
||||
&& poetry export \
|
||||
--with=dev,tests,format \
|
||||
--without-hashes \
|
||||
-f requirements.txt \
|
||||
-o requirements.txt \
|
||||
&& pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["python", "-m", "src.api_app"]
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["./entry.sh"]
|
||||
|
||||
Reference in New Issue
Block a user