Files
directory/Dockerfile
T

18 lines
331 B
Docker
Raw Normal View History

2026-06-12 15:40:12 -04:00
FROM ruby:3.3-slim
# Install dependencies needed for gems and mysql2
RUN apt-get update -qq && apt-get install -y \
build-essential \
default-libmysqlclient-dev \
git \
pkg-config
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
# Start the Puma server
CMD ["bundle", "exec", "puma", "-p", "4567"]