-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
29 lines (18 loc) · 705 Bytes
/
Dockerfile
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
FROM python:3.12.3-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt upgrade -y && apt install gcc -y && apt clean # && rm /var/lib/apt/lists/*
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 ./server ./server
COPY ./requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY ./requirements-fast.txt ./
RUN pip3 install --no-cache-dir -r requirements-fast.txt
EXPOSE 7080
CMD ["python3", "-m", "server", "server"]