-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile.dev
More file actions
40 lines (37 loc) · 803 Bytes
/
Dockerfile.dev
File metadata and controls
40 lines (37 loc) · 803 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
35
36
37
38
39
40
FROM ruby:3.2-alpine
ENV LANG ja_JP.UTF-8
ENV PAGER busybox less
RUN apk update && \
apk upgrade && \
apk add --update\
bash \
build-base \
curl-dev \
iproute2 \
git \
libxml2-dev \
libxslt-dev \
linux-headers \
mysql-dev \
openssh \
ruby-dev \
tzdata \
yaml \
yaml-dev \
zlib-dev
ENV BC_DIR /bucky-core/
ENV PATH /bucky-core/exe/:$PATH
WORKDIR $BC_DIR
COPY . $BC_DIR
RUN \
gem install bundler -v 2.5.18 && \
echo 'gem: --no-document' >> ~/.gemrc && \
cp ~/.gemrc /etc/gemrc && \
chmod uog+r /etc/gemrc && \
bundle config --global build.nokogiri --use-system-libraries && \
bundle config --global jobs 4 && \
bundle install && \
rm -rf ~/.gem
WORKDIR /app
RUN chown -R nobody:nobody /app
USER nobody