web/Dockerfile
2024-09-20 18:39:12 +05:00

29 lines
539 B
Docker

FROM python:3.12.3
# -slim
ENV DEBIAN_FRONTEND=noninteractive
RUN pip install poetry && poetry config virtualenvs.create false
WORKDIR /app
RUN pip install --no-cache-dir wheel Cython
COPY ./rl_string_helper ./rl_string_helper
RUN pip3 install --no-cache-dir ./rl_string_helper
COPY ./database-lib ./database-lib
RUN pip3 install --no-cache-dir ./database-lib
COPY ./core ./core
RUN pip3 install --no-cache-dir ./core
COPY ./web ./web
WORKDIR /app/web
RUN poetry install
# EXPOSE 7080
CMD ["python3", "-m", "server", "server"]