Skip to content

Commit 23fad32

Browse files
committed
feat: include supervisor in the base image
1 parent 46b28ce commit 23fad32

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

base/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ENV HOME=/home/weblate
4444
# Avoid Python buffering stdout and delaying logs
4545
ENV PYTHONUNBUFFERED=1
4646
# Add virtualenv to path
47-
ENV PATH=/app/venv/bin/:/usr/local/bin:/usr/bin:/bin
47+
ENV PATH=/app/venv/bin:/opt/supervisor/bin:/usr/local/bin:/usr/bin:/bin
4848

4949
# Install dependencies
5050
# hadolint ignore=DL3008,DL3013,SC2046,DL3003
@@ -87,3 +87,12 @@ RUN \
8787

8888
# Install uv
8989
RUN curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | env UV_UNMANAGED_INSTALL="/usr/local/bin" sh
90+
91+
# Install supervisor and patched supervisor-stdout with following fixes:
92+
# - https://github.com/coderanger/supervisor-stdout/pull/12
93+
# - https://github.com/coderanger/supervisor-stdout/pull/18
94+
# - https://github.com/coderanger/supervisor-stdout/pull/20
95+
RUN export UV_NO_CACHE=1 && \
96+
uv venv /opt/supervisor && \
97+
source /opt/supervisor/bin/activate && \
98+
uv install supervisor https://github.com/nijel/supervisor-stdout/archive/c909c1a1ddabaf679dc2eaecb3b8f5ad6bef467a.zip

0 commit comments

Comments
 (0)