File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
{{cookiecutter.project_slug}}/backend Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 11FROM ghcr.io/br3ndonland/inboard:fastapi-0.51-python3.11
22
33# Use file.name* in case it doesn't exist in the repo
4- COPY ./app/app /app/app
5- COPY ./app/pyproject.toml /app/pyproject.toml
6- COPY ./app/README.md /app/README.md
4+ COPY ./app/ /app/
75WORKDIR /app/
86ENV HATCH_ENV_TYPE_VIRTUAL_PATH=.venv
97RUN hatch env prune && hatch env create production && pip install --upgrade setuptools
@@ -24,5 +22,4 @@ ARG BACKEND_APP_MODULE=app.main:app
2422ARG BACKEND_PRE_START_PATH=/app/prestart.sh
2523ARG BACKEND_PROCESS_MANAGER=gunicorn
2624ARG BACKEND_WITH_RELOAD=false
27- ENV APP_MODULE=${BACKEND_APP_MODULE} PRE_START_PATH=${BACKEND_PRE_START_PATH} PROCESS_MANAGER=${BACKEND_PROCESS_MANAGER} WITH_RELOAD=${BACKEND_WITH_RELOAD}
28- # COPY ./app/ /app/
25+ ENV APP_MODULE=${BACKEND_APP_MODULE} PRE_START_PATH=${BACKEND_PRE_START_PATH} PROCESS_MANAGER=${BACKEND_PROCESS_MANAGER} WITH_RELOAD=${BACKEND_WITH_RELOAD}
Original file line number Diff line number Diff line change 1212 PIPX_HOME=/opt/pipx/home \
1313 PIPX_VERSION=$PIPX_VERSION \
1414 PYTHONPATH=/app
15- COPY ./app/app /app/app
16- COPY ./app/pyproject.toml /app/pyproject.toml
17- COPY ./app/README.md /app/README.md
18- COPY ./app/worker-start.sh /app/worker-start.sh
15+ COPY ./app/ /app/
1916RUN <<HEREDOC
2017python -m pip install --no-cache-dir --upgrade pip "pipx==$PIPX_VERSION"
2118pipx install "hatch==$HATCH_VERSION"
You can’t perform that action at this time.
0 commit comments