Commit 17a9a915 authored by Egor Chernov's avatar Egor Chernov
Browse files

Merge branch 'SD-420-cicd' into 'dev'

SD-420: cicd

See merge request !1
1 merge request!1SD-420: cicd
Pipeline #27102 passed with stage
in 3 seconds
Showing with 29 additions and 4 deletions
+29 -4
stages:
- deploy
deploy:
stage: deploy
script:
- docker compose up --build --force-recreate -d
tags:
- deploy
- lisa
- identification_server
FROM python:3.10.4
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV DATA_DIR ../data/test
RUN apt-get update && apt-get -y install libgl1
WORKDIR /app
COPY requirements.txt /app
RUN pip install -r requirements.txt
COPY . /app
ENV DATA_DIR ../data/test
RUN apt-get update && apt-get -y install libgl1 && \
pip install -r requirements.txt
CMD ["sh", "-c", "cd web ; uvicorn main:app --host 0.0.0.0 --reload"]
CMD ["sh", "-c", "cd web ; uvicorn main:app --host 0.0.0.0"]
EXPOSE 8000
\ No newline at end of file
services:
web:
build: .
ports:
- "8000:8000"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment