File tree 2 files changed +3
-9
lines changed
{{cookiecutter.project_slug}}/backend
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM ghcr.io/br3ndonland/inboard:fastapi-0.51-python3.11
2
2
3
3
# 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/
7
5
WORKDIR /app/
8
6
ENV HATCH_ENV_TYPE_VIRTUAL_PATH=.venv
9
7
RUN hatch env prune && hatch env create production && pip install --upgrade setuptools
@@ -24,5 +22,4 @@ ARG BACKEND_APP_MODULE=app.main:app
24
22
ARG BACKEND_PRE_START_PATH=/app/prestart.sh
25
23
ARG BACKEND_PROCESS_MANAGER=gunicorn
26
24
ARG 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 12
12
PIPX_HOME=/opt/pipx/home \
13
13
PIPX_VERSION=$PIPX_VERSION \
14
14
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/
19
16
RUN <<HEREDOC
20
17
python -m pip install --no-cache-dir --upgrade pip "pipx==$PIPX_VERSION"
21
18
pipx install "hatch==$HATCH_VERSION"
You can’t perform that action at this time.
0 commit comments