Create dockerfile, changed apply_commits method

This commit is contained in:
Ivan Vazhenin
2023-11-15 10:58:45 +07:00
parent 5e9f427072
commit a25a54eb92
6 changed files with 71 additions and 10 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM reg.ivazh.ru/infra-oodb
WORKDIR /app
COPY . ./
RUN cd deps/pygost-5.12/ && \
python3 setup.py install && \
cd ../.. && \
pip3 install -r requirements.txt
ENV LD_LIBRARY_PATH "/app"
ENV PYTHONPATH "${PYTHONPATH}:/app"
EXPOSE 9000
EXPOSE 80
CMD ["python3", "main.py"]