Skip to content

Commit a6c3565

Browse files
authored
build: improve layer order (#81)
1 parent 97dddc0 commit a6c3565

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ jobs:
129129
TAG=$(git tag -l | tail -n 1)
130130
git tag -d $TAG
131131
git tag $TAG
132-
git push origin HEAD:main
133-
git push origin --tags
132+
git push origin HEAD:main -f
133+
git push origin --tags -f

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,18 @@ COPY --from=build --chown=${USER}:${GROUP} ${VENV_PATH} ${VENV_PATH}
5252
# Set PATH to use the virtual environment
5353
ENV PATH="${BIN_PATH}:$PATH"
5454

55-
# Copy needed files for installing the package
55+
# Copy needed files to install the package
56+
COPY --from=build --chown=${USER}:${GROUP} VERSION .
5657
COPY --from=build --chown=${USER}:${GROUP} ${WORKDIR}/pyproject.toml .
5758
COPY --chown=${USER}:${GROUP} README.md README.md
5859
COPY --chown=${USER}:${GROUP} src src
5960

60-
# Copy the real VERSION file
61-
COPY --chown=${USER}:${GROUP} VERSION .
62-
6361
# Install the CLI tool (dependencies already installed in venv)
6462
RUN ${BIN_PATH}/pip3 install --no-deps .
6563

6664
USER ${USER}:${GROUP}
6765

66+
# Copy the real VERSION file
67+
COPY --chown=${USER}:${GROUP} VERSION .
68+
6869
ENTRYPOINT [ "lightman-ai" ]

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.18.9
1+
v0.18.9

0 commit comments

Comments
 (0)