all done docker working

This commit is contained in:
acidburnmonkey
2025-08-06 17:06:49 -04:00
parent d40b201065
commit 96de1a1d0f
4 changed files with 16 additions and 10 deletions
+3 -8
View File
@@ -2,13 +2,10 @@ FROM python:3.13-alpine
# install nginx and runtime deps, plus a build-deps group for uv sync
RUN apk add --no-cache nginx libffi openssl
RUN apk add --no-cache --virtual .build-deps build-base libffi-dev openssl-dev python3-dev
RUN apk add --no-cache --virtual .build-deps build-base libffi-dev openssl-dev python3-dev py3-pip
# grab uv CLI
RUN mkdir -p /usr/local/bin \
&& wget -qO /usr/local/bin/uv https://ghcr.io/astral-sh/uv:latest/uv \
&& wget -qO /usr/local/bin/uvx https://ghcr.io/astral-sh/uv:latest/uvx \
&& chmod +x /usr/local/bin/uv /usr/local/bin/uvx
RUN pip install uv
WORKDIR /app
@@ -27,12 +24,10 @@ RUN uv run python manage.py collectstatic --noinput
# copy nginx config
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
EXPOSE 8088
# start.sh should launch both nginx and uvicorn
COPY start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]