Skip to content

Commit 85d128a

Browse files
authored
Merge pull request blackcandy-org#227 from blackcandy-org/dev
Fix build error of docker image
2 parents 46af7ba + 4358a82 commit 85d128a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ruby:3.1.2-alpine
22

3+
LABEL maintainer="[email protected]/aidewoode"
4+
35
ENV LANG C.UTF-8
46
ENV RAILS_ENV production
57
ENV NODE_ENV production
68
ENV RAILS_SERVE_STATIC_FILES true
79

8-
LABEL maintainer="[email protected]/aidewoode"
10+
# build for musl-libc, not glibc (see https://github.com/sparklemotion/nokogiri/issues/2075, https://github.com/rubygems/rubygems/issues/3174)
11+
ENV BUNDLE_FORCE_RUBY_PLATFORM 1
912

1013
RUN apk add --no-cache \
1114
tzdata \
@@ -14,8 +17,7 @@ RUN apk add --no-cache \
1417
nodejs \
1518
yarn \
1619
imagemagick \
17-
ffmpeg \
18-
gcompat
20+
ffmpeg
1921

2022
WORKDIR /app
2123

0 commit comments

Comments
 (0)