and again and agin again
This commit is contained in:
parent
4bcf1ece02
commit
15cc22414b
1 changed files with 9 additions and 9 deletions
18
Dockerfile
18
Dockerfile
|
@ -7,21 +7,21 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|||
ENV STATIC_ROOT=/app/staticfiles
|
||||
ENV MEDIA_ROOT=/app/mediafiles
|
||||
|
||||
# Install uv
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
||||
# Install binaries with correct permissions
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest --chown=root:root --chmod=755 /uv /usr/local/bin/uv
|
||||
COPY --from=caddy:latest --chown=root:root --chmod=755 /usr/bin/caddy /usr/local/bin/caddy
|
||||
COPY --chmod=755 docker/run.sh /usr/local/bin/runhub.sh
|
||||
|
||||
# Install Caddy
|
||||
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 /app/config/caddy/Caddyfile
|
||||
|
||||
ADD . /app
|
||||
|
||||
RUN uv sync --frozen \
|
||||
&& uv pip install gunicorn --no-cache-dir \
|
||||
&& chmod a+x /usr/local/bin/runhub.sh && chmod 777 /usr/local/bin/caddy \
|
||||
&& mkdir -p /app/config/caddy /app/run/caddy /app/run/gunicorn && chgrp -R 0 /app && chmod -R g=u /app && chmod g+w /app/config/caddy/Caddyfile \
|
||||
&& mkdir -p /app/config/caddy /app/run/caddy /app/run/gunicorn \
|
||||
&& chgrp -R 0 /app \
|
||||
&& chmod -R g=u /app \
|
||||
&& chmod g+w /app/config/caddy/Caddyfile \
|
||||
&& SECRET_KEY= python -m hub collectstatic --noinput
|
||||
|
||||
CMD ["/usr/local/bin/runhub.sh"]
|
||||
CMD ["/usr/local/bin/runhub.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue