Refactoring things and doing stuff in a MVP way. #15
|
@ -35,11 +35,11 @@ RUN poetry export -f requirements.txt $(test "$DJANGO_ENV" != production && echo
|
||||||
RUN groupadd -g 1000 www
|
RUN groupadd -g 1000 www
|
||||||
RUN useradd -u 1000 -ms /bin/bash -g www www
|
RUN useradd -u 1000 -ms /bin/bash -g www www
|
||||||
COPY --chown=www:www ./ /app/
|
COPY --chown=www:www ./ /app/
|
||||||
RUN mkdir /app/static && chown www:www /app/static
|
RUN mkdir /app/src/static && chown www:www /app/src/static
|
||||||
|
|
||||||
ARG BUILD
|
ARG BUILD
|
||||||
ENV BUILD ${BUILD}
|
ENV BUILD ${BUILD}
|
||||||
|
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
WORKDIR /app/src
|
|
||||||
CMD ["uvicorn", "project.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off"]
|
CMD ["uvicorn", "project.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--workers", "3", "--lifespan", "off", "--app-dir", "/app/src"]
|
||||||
|
|
Loading…
Reference in a new issue