Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.

Commit c792f48

Browse files
committed
Move to Alpine image
1 parent 6ef9d76 commit c792f48

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
FROM ruby:2.5
1+
FROM ruby:2.5-alpine
22

3-
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
3+
RUN apk add --update \
4+
build-base \
5+
libxml2-dev \
6+
libxslt-dev \
7+
postgresql-dev \
8+
tzdata \
9+
nodejs
410

511
RUN mkdir /app
612
WORKDIR /app

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- '5432:5432'
99
web:
1010
build: .
11-
command: bundle exec rails s -p 3000 -b '0.0.0.0'
11+
command: /bin/sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
1212
volumes:
1313
- .:/app
1414
ports:

0 commit comments

Comments
 (0)