Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Docker Build Requires Python2 #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ COPY webpack.config.js ./
COPY .babelrc ./
COPY src ./src
RUN ls

# Install build dependencies
RUN apk add --no-cache \
build-base \
curl \
gcc \
musl-dev \
openssl-dev \
zlib-dev

# Download and install Python 2.7
RUN curl -O https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz && \
tar -xzf Python-2.7.18.tgz && \
cd Python-2.7.18 && \
./configure --enable-optimizations && \
make altinstall && \
ln -s /usr/local/bin/python2.7 /usr/bin/python2

# Install the project's dependencies and build the bundles
RUN npm ci && npm run build && env NODE_ENV=production npm prune

Expand Down
Loading