chore: Update Dockerfile to remove unnecessary SSH server configuration

This commit is contained in:
2024-07-06 20:13:37 +02:00
parent 13cd0e1ea2
commit 50e9c8c76b
5 changed files with 227 additions and 25 deletions
+9 -5
View File
@@ -18,12 +18,15 @@ RUN apt-get update && apt-get install -y \
zip \
fish \
cron \
sudo \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd mbstring zip pdo pdo_mysql pdo_pgsql
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN usermod -aG sudo root
# Install Node.js and npm
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs
@@ -31,11 +34,12 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
# Install PM2 globally
RUN npm install -g pm2
# Switch to Fish shell
SHELL [ "fish", "--command" ]
RUN chsh -s /usr/bin/fish
ENV SHELL /usr/bin/fish
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
# # Switch to Fish shell
# SHELL [ "fish", "--command" ]
# RUN chsh -s /usr/bin/fish
# ENV SHELL /usr/bin/fish
# ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
# Create a directory for the SSH keys
RUN mkdir -p /root/.ssh