web/Dockerfile
2024-02-23 11:47:31 +06:00

31 lines
No EOL
859 B
Docker

FROM debian:bullseye-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y python3 python3-pip curl && \
apt-get clean
COPY ./requirements.txt ./
COPY ./requirements-fast.txt ./
COPY ./core ./core
COPY ./rl_string_helper ./rl_string_helper
COPY ./database-lib ./database-lib
COPY ./other/sqlite_zstd-0.1.dev1+g5aaeb60-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl ./
RUN pip install --no-cache-dir wheel
RUN pip3 install --no-cache-dir ./rl_string_helper
RUN pip3 install --no-cache-dir ./database-lib
RUN pip3 install --no-cache-dir ./core
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements-fast.txt
RUN pip3 install --no-cache-dir sqlite_zstd-0.1.dev1+g5aaeb60-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
EXPOSE 7080
CMD ["python3", "-m", "server", "server"]