From db997176a9873d3ee6d412b872b58d0e68f797d5 Mon Sep 17 00:00:00 2001 From: Sayed Hamza <99398339+Sayedcodes@users.noreply.github.com> Date: Mon, 26 Jan 2026 07:28:35 +0530 Subject: [PATCH] Update Dockerfile --- .devcontainer/Dockerfile | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 38cf8c82..997619ee 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,29 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-24.04 -ADD first-run-notice.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt +# Add metadata +LABEL maintainer="your-email@example.com" +LABEL description="PHP development container with Inkscape" +# Copy configuration files +COPY first-run-notice.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt + +# Install dependencies in a single layer with cleanup RUN apt-get update -y && \ - apt-get install -y php php-curl php-xml inkscape composer + apt-get install -y --no-install-recommends \ + php \ + php-curl \ + php-xml \ + php-mbstring \ + php-zip \ + inkscape \ + composer \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Set working directory +WORKDIR /workspace + +# Verify installations +RUN php --version && \ + composer --version && \ + inkscape --version