mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-26 20:50:54 +00:00
14 lines
315 B
Text
14 lines
315 B
Text
|
FROM rockylinux:9
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN dnf update -y && dnf install -y python3 python3-pip
|
||
|
RUN python3 -m venv /opt/venv
|
||
|
|
||
|
COPY requirements_lock.txt .
|
||
|
RUN /opt/venv/bin/pip3 install -r requirements_lock.txt
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
CMD ["/opt/venv/bin/python3", "-m", "hypercorn", "apollo.server.server", "--bind", "0.0.0.0:8000"]
|