apache / apache/age-viewer

I have to add a line to Dockerfile make it work: RUN npm add @babel/runtime

Open
#185 1 comment 3 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
387
Forks
268
PR merge metrics
No merged PRs in 30d

Description

Building from docker start up fails with a babel error.
I added this line to the Dockerfile and now runs:

RUN npm add @babel/runtime

Dockerfile:

FROM node:14.16.0
RUN npm install pm2
WORKDIR /src
COPY . .
RUN npm add @babel/runtime
RUN npm run setup
EXPOSE 3000

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Dockerfile shown in the issue and run the image build and startup sequence using node:14.16.0, including npm run setup, while capturing the Babel error. Compare the failing build with the reported RUN npm add @babel/runtime workaround; done means the documented Docker startup works reliably without an unexplained manual step.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, dockerfile, javascript
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.