circumvent permission issues openshift specific
This commit is contained in:
parent
55099fd226
commit
f6b374556e
1 changed files with 7 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
@ -14,14 +14,17 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|||
COPY --from=docker.io/caddy:latest /usr/bin/caddy /usr/local/bin/caddy
|
||||
|
||||
COPY docker/run.sh /usr/local/bin/runhub.sh
|
||||
COPY docker/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
ADD . /app
|
||||
|
||||
RUN uv sync --frozen
|
||||
RUN uv pip install gunicorn --no-cache-dir \
|
||||
|
||||
|
||||
RUN
|
||||
RUN uv sync --frozen \
|
||||
&& uv pip install gunicorn --no-cache-dir \
|
||||
&& chmod a+x /usr/local/bin/runhub.sh \
|
||||
&& mkdir -p /app/run && chown -R app:root /app/run && chmod -R g=u /app/run \
|
||||
&& SECRET_KEY= python -m hub collectstatic --noinput
|
||||
|
||||
COPY docker/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
CMD ["/usr/local/bin/runhub.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue