Skip to content

Commit 14c0544

Browse files
author
Gonzalo Diaz
committed
[Docker] a little performance increase in (re)build time and note added.
1 parent bd53e18 commit 14c0544

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ FROM base AS lint
1010
ENV WORKDIR=/app
1111
WORKDIR ${WORKDIR}
1212

13-
COPY ./src ${WORKDIR}/src
1413
RUN apk add --update --no-cache make nodejs npm
1514
RUN apk add --update --no-cache yamllint
1615

1716
RUN npm install -g --ignore-scripts markdownlint-cli
1817
RUN npm install -g --ignore-scripts pyright
1918

19+
# [!TIP] Use a bind-mount to lint and test "current" code against this stage
20+
COPY ./ ${WORKDIR}/
21+
2022
###############################################################################
2123
FROM base AS development
2224

0 commit comments

Comments
 (0)