2024-09-20 13:39:12 +00:00
|
|
|
FROM python:3.12.3
|
|
|
|
|
# -slim
|
2024-02-07 11:17:07 +00:00
|
|
|
|
2024-07-27 22:30:15 +00:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2024-09-20 13:39:12 +00:00
|
|
|
|
|
|
|
|
RUN pip install poetry && poetry config virtualenvs.create false
|
2024-07-27 22:30:15 +00:00
|
|
|
|
2024-02-07 11:17:07 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
2024-07-27 22:30:15 +00:00
|
|
|
RUN pip install --no-cache-dir wheel Cython
|
2024-02-07 11:17:07 +00:00
|
|
|
|
2024-07-27 16:55:13 +00:00
|
|
|
COPY ./rl_string_helper ./rl_string_helper
|
2024-02-07 11:17:07 +00:00
|
|
|
RUN pip3 install --no-cache-dir ./rl_string_helper
|
2024-07-27 16:55:13 +00:00
|
|
|
|
|
|
|
|
COPY ./database-lib ./database-lib
|
2024-02-23 05:47:31 +00:00
|
|
|
RUN pip3 install --no-cache-dir ./database-lib
|
2024-07-27 16:55:13 +00:00
|
|
|
|
2024-09-21 11:09:30 +00:00
|
|
|
COPY ./medium-parser ./medium-parser
|
|
|
|
|
RUN pip3 install --no-cache-dir ./medium-parser
|
2024-02-07 11:17:07 +00:00
|
|
|
|
2024-09-20 13:39:12 +00:00
|
|
|
COPY ./web ./web
|
2024-07-27 16:55:13 +00:00
|
|
|
|
2024-09-20 13:39:12 +00:00
|
|
|
WORKDIR /app/web
|
2024-07-27 16:55:13 +00:00
|
|
|
|
2024-09-20 13:39:12 +00:00
|
|
|
RUN poetry install
|
2024-02-07 11:17:07 +00:00
|
|
|
|
2024-09-20 13:39:12 +00:00
|
|
|
# EXPOSE 7080
|
2024-02-07 11:17:07 +00:00
|
|
|
|
2024-07-27 22:30:15 +00:00
|
|
|
CMD ["python3", "-m", "server", "server"]
|