diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ce84962b9..5c26c114d 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,38 +1,25 @@ -# Use Ubuntu 24.04 as base image FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive -ENV DEVCONTAINER_ENV=1 -ENV BUNDLE_PATH=/usr/local/bundle -ENV BUNDLE_APP_CONFIG=/usr/local/bundle -# Set working directory WORKDIR /workspace -COPY Gemfile Gemfile.lock ./ +RUN export DEBIAN_FRONTEND=noninteractive +RUN apt-get update +RUN apt-get install -y --no-install-recommends git gh +RUN apt-get install -y --no-install-recommends less +RUN apt-get install -y --no-install-recommends python3 +RUN apt-get install -y --no-install-recommends python3.12-venv +RUN apt-get install -y --no-install-recommends python3-pip +RUN apt-get install -y --no-install-recommends build-essential +RUN apt-get install -y --no-install-recommends ruby +RUN apt-get install -y --no-install-recommends ruby-dev +RUN apt-get install -y --no-install-recommends bundler +RUN apt-get install -y --no-install-recommends nodejs +RUN apt-get install -y --no-install-recommends npm +RUN apt-get install -y --no-install-recommends ditaa +RUN apt-get clean autoclean +RUN apt-get autoremove -y +RUN rm -rf /var/lib/{apt,dpkg,cache,log}/* -# Install dependencies -RUN apt-get update && \ - apt-get install -y --no-install-recommends \ - git \ - gh \ - less \ - python3 \ - python3.12-venv \ - python3-pip \ - build-essential \ - ruby \ - ruby-dev \ - bundler \ - nodejs \ - npm \ - ditaa && \ - bundle install && \ - apt-get clean autoclean && \ - apt-get autoremove -y && \ - rm -rf /var/lib/{apt,dpkg,cache,log}/* - -COPY package.json package-lock.json ./ - -# Stay in workspace directory WORKDIR /workspace \ No newline at end of file