-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 825 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM planetra.gitlab.yandexcloud.net:5050/tech/python:3.12
ARG DOCKER_APP_PATH
WORKDIR $DOCKER_APP_PATH
COPY requirements.txt .
COPY main.py .
COPY config.py .
RUN mkdir -p ./base_parser
COPY base_parser ./base_parser
RUN mkdir -p ./database
COPY database ./database
RUN mkdir -p ./hh_parser
COPY hh_parser ./hh_parser
RUN mkdir -p ./shared
COPY shared ./shared
RUN mkdir -p ./tadv_parser
COPY tadv_parser ./tadv_parser
RUN mkdir -p ./templates
COPY templates ./templates
RUN mkdir -p ./json_data
COPY json_data ./json_data
RUN mkdir -p ./static
COPY static ./static
ENV PYTHONPATH="/app"
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config default-libmysqlclient-dev build-essential python3-dev bash
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "-u", "main.py"]