-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
34 lines (26 loc) · 836 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
34 lines (26 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# syntax = docker/dockerfile:1
# Development image for the Rails API and the Solid Queue worker.
# Not for production — use ./Dockerfile for that (it runs RAILS_ENV=production
# and skips the development gems).
ARG RUBY_VERSION=3.4.7
FROM ruby:$RUBY_VERSION-slim
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y \
build-essential \
curl \
git \
libjemalloc2 \
libpq-dev \
libvips \
libyaml-dev \
pkg-config \
postgresql-client && \
rm -rf /var/lib/apt/lists /var/cache/archives
WORKDIR /app
# Install all gems, including the development/test groups this app boots with.
COPY Gemfile Gemfile.lock ./
RUN bundle install && \
rm -rf ~/.bundle/ /usr/local/bundle/ruby/*/cache
COPY . .
EXPOSE 3000
CMD ["bin/rails", "server", "-b", "0.0.0.0"]