forked from mutewinter/Showbot
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) 路 759 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (23 loc) 路 759 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
FROM ruby:3.4.2-slim
# System dependencies
RUN apt-get update -qq && apt-get install -y \
build-essential \
libsqlite3-dev \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install gems first (layer cached separately from app code)
# BUNDLE_WITHOUT controls which gem groups are excluded at build time.
# Override this arg in docker-compose to include test gems for the test service.
ARG BUNDLE_WITHOUT="test production backup irc"
COPY Gemfile ./
RUN bundle config set --local without "${BUNDLE_WITHOUT}" \
&& bundle install --jobs 4 --retry 3
# Copy the rest of the app
COPY . .
# Create the db directory for SQLite
RUN mkdir -p db
EXPOSE 5000
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]