Fix dockerfile

This commit is contained in:
Dan Elbert 2024-10-18 14:39:41 -05:00
parent 808c805cde
commit 1b6b3135c7

View File

@ -1,17 +1,13 @@
FROM ruby:3.3.5-bookworm FROM ruby:3.3.5-bookworm
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \ RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get dist-upgrade -y && \ apt-get update && apt-get dist-upgrade -y && \
apt-get install -y \ apt-get install -y \
nodejs \ nodejs \
yarn \
nginx && \ nginx && \
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN gem update --system && gem install bundler RUN gem update --no-document --system 3.5.21 && gem install bundler --no-document -v 2.5.21 && corepack enable
# Install nginx config files # Install nginx config files
RUN rm /etc/nginx/sites-enabled/default RUN rm /etc/nginx/sites-enabled/default