20 lines
532 B
Docker
20 lines
532 B
Docker
FROM docker.io/python:3.10-slim AS build
|
|
|
|
COPY wheels /tmp/wheels
|
|
COPY requirements.txt /tmp
|
|
RUN python -m venv /usr/local/hudctrl
|
|
RUN /usr/local/hudctrl/bin/python -m \
|
|
pip install -f /tmp/wheels -r /tmp/requirements.txt
|
|
|
|
COPY ui /usr/local/hudctrl/ui
|
|
|
|
FROM docker.io/python:3.10-slim
|
|
RUN apt-get update && \
|
|
apt-get install -y nginx tini && \
|
|
rm -rf /var/cache/apt /var/lib/apt
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=build /usr/local/hudctrl /usr/local/hudctrl
|
|
COPY run.sh /
|
|
|
|
CMD ["tini", "--", "/run.sh"]
|