Skip to content

Commit dddaae8

Browse files
committed
chore: update Dockerfile to install curl and NodeJS for improved dependency management
1 parent f9dca4e commit dddaae8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM php:8.2
22

33
# Update Container
4-
RUN apt-get update -y && apt-get install -y openssl zip unzip git
4+
RUN apt-get update -y && apt-get install -y openssl zip unzip git curl
55

66
# Get Composer
77
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
@@ -17,8 +17,9 @@ COPY . /app
1717
# Install Composer Dependencies
1818
RUN composer install --no-dev --prefer-dist --no-interaction --no-progress
1919

20-
# Install NPM
21-
RUN apt-get install -y npm
20+
# Install NodeJS
21+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
22+
RUN apt-get install -y nodejs
2223

2324
# Install NPM Dependencies
2425
RUN npm install

0 commit comments

Comments
 (0)