Skip to content

Commit d1d53d7

Browse files
committed
fix dockerfile
1 parent fe1a276 commit d1d53d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ ENV PATH="$PATH:/home/cdkuser/.asdf/bin/:/home/cdkuser/node_modules/.bin"
3333
RUN asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
3434
# install some common node versions that are used in builds to speed things up
3535
RUN asdf install nodejs 20.19.1; \
36-
asdf install nodejs 23.9.0; \
36+
asdf install nodejs 23.9.0
37+
# update npm
38+
RUN export ASDF_DIR=/home/cdkuser/.asdf && \
39+
. /home/cdkuser/.asdf/asdf.sh && \
40+
asdf shell nodejs 20.19.1 && \
3741
cd ~/.asdf/installs/nodejs/20.19.1/lib && npm update npm
3842

3943
# copy files needed for deployment

0 commit comments

Comments
 (0)