Skip to content

Commit 48c4d53

Browse files
committed
optimize docker
1 parent 69939f8 commit 48c4d53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:24.04
22

33
WORKDIR /var/www/html
44

5-
ENV DEBIAN_FRONTEND noninteractive
5+
ENV DEBIAN_FRONTEND=noninteractive
66

77
# upgrade
88
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y
@@ -33,6 +33,7 @@ COPY . /var/www/html
3333
RUN rm -rf /var/www/html/.git /var/www/html/vendor /var/www/html/node_modules
3434
RUN npm install --force
3535
RUN npm run build
36+
RUN rm -rf /var/www/html/node_modules
3637
RUN composer install --no-dev
3738
RUN chown -R www-data:www-data /var/www/html \
3839
&& chmod -R 755 /var/www/html/storage /var/www/html/bootstrap/cache

0 commit comments

Comments
 (0)