Updated dockerfile
This commit is contained in:
@@ -78,14 +78,19 @@ ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_BREWMAN=$SETUPTOOLS_SCM_PRETEND_VERSION_F
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
--mount=type=bind,source=brewman/uv.lock,target=uv.lock \
|
||||
--mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \
|
||||
--mount=source=.git,target=.git,type=bind \
|
||||
uv sync --locked --no-install-project
|
||||
|
||||
COPY /brewman ./
|
||||
COPY --from=builder /frontend/browser /app/frontend
|
||||
RUN ls -lah
|
||||
|
||||
# Sync the project
|
||||
# Ref: https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
--mount=type=bind,source=brewman/uv.lock,target=uv.lock \
|
||||
--mount=type=bind,source=brewman/pyproject.toml,target=pyproject.toml \
|
||||
--mount=source=.git,target=.git,type=bind \
|
||||
uv sync --locked --no-editable
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user