Skip to content

Commit 7a459be

Browse files
committed
Fixed: pygments fork not working in Docker builds.
1 parent de77c35 commit 7a459be

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ WORKDIR /app
66
RUN apt-get update && apt-get install -y \
77
nodejs \
88
unzip \
9+
python2.7 \
910
&& rm -rf /var/lib/apt/lists/*
1011

12+
# Link python2 and python to python2.7 because it's used by pygments.rb to load the pygments library.
13+
RUN ln -s /usr/bin/python2.7 /usr/bin/python2
14+
RUN ln -s /usr/bin/python2.7 /usr/bin/python
15+
1116
RUN gem install bundler:1.17.3
1217

1318
COPY Gemfile* /app/

vendor/pygments-main/pygmentize

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python2.7
22

33
import sys, pygments.cmdline
44
try:

0 commit comments

Comments
 (0)